/* ============================================
   MANAJEMEN KEUANGAN STYLES
   ============================================ */

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.module-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #E8EDF2;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.module-card:hover {
    border-color: #547A95;
    transform: translateY(-2px);
}

.module-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8EDF2;
    border-radius: 4px;
}

.module-icon i {
    width: 24px;
    height: 24px;
    color: #2C3947;
}

.module-info {
    flex: 1;
}

.module-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #2C3947;
}

.module-info p {
    font-size: 12px;
    color: #547A95;
    margin: 0;
}

.module-arrow {
    width: 20px;
    height: 20px;
    color: #547A95;
}

/* Summary Card */
.summary-card {
    background: #FFFFFF;
    border: 1px solid #E8EDF2;
    border-radius: 4px;
    padding: 20px;
}

.summary-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #E8EDF2;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .summary-stats {
        grid-template-columns: 1fr;
    }
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #E8EDF2;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 13px;
    color: #547A95;
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: #2C3947;
}

/* Settings Card */
.settings-card {
    background: #FFFFFF;
    border: 1px solid #E8EDF2;
    border-radius: 4px;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.settings-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #E8EDF2;
    border-bottom: 1px solid #E8EDF2;
}

.settings-card .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card .card-title i {
    width: 18px;
    height: 18px;
    color: #2C3947;
}

.settings-card .card-title h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.settings-card .card-body {
    padding: 24px;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #E8F4FD;
    border-left: 3px solid #2C3947;
    border-radius: 4px;
    margin-bottom: 24px;
}

.info-box i {
    width: 18px;
    height: 18px;
    color: #2C3947;
    flex-shrink: 0;
}

.info-box p {
    font-size: 13px;
    color: #2C3947;
    margin: 0;
    line-height: 1.4;
}

/* Setting Row */
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #E8EDF2;
}

.setting-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-info {
    flex: 2;
}

.setting-info .form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #2C3947;
}

.setting-desc {
    font-size: 12px;
    color: #547A95;
    margin: 0;
}

.setting-control {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E8EDF2;
    transition: 0.2s;
    border-radius: 4px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #2C3947;
    transition: 0.2s;
    border-radius: 3px;
}

input:checked + .toggle-slider {
    background-color: #2C3947;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: #FFFFFF;
}

.toggle-label {
    font-size: 13px;
    font-weight: 500;
    min-width: 50px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.active {
    background: #2C3947;
    color: #FFFFFF;
}

.status-badge.inactive {
    background: #AE2448;
    color: #FFFFFF;
}

/* Input with Symbol */
.input-with-symbol {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid #E8EDF2;
    border-radius: 4px;
    padding: 0 12px;
}

.input-with-symbol .currency,
.input-with-symbol .unit {
    font-size: 14px;
    color: #547A95;
    font-weight: 500;
}

.input-with-symbol .form-input {
    width: 140px;
    padding: 10px 0;
    border: none;
    text-align: right;
}

.input-with-symbol .form-input:focus {
    outline: none;
}

/* Buttons */
.btn-primary {
    background: #2C3947;
    border-color: #2C3947;
    color: #FFFFFF;
    padding: 8px 20px;
}

.btn-primary:hover {
    background: #447D9B;
    border-color: #447D9B;
}

/* Setting Summary */
.setting-summary {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #E8EDF2;
}

.setting-summary.warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 4px;
    padding: 16px;
    margin-top: 20px;
}

.setting-summary.warning i {
    color: #F59E0B;
}

.summary-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2C3947;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
}

.recommendation-box {
    background: #E8EDF2;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #2C3947;
}

.info-text {
    background: #E8EDF2;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #2C3947;
}

.info-text a {
    color: #2C3947;
    text-decoration: underline;
}

.info-text a:hover {
    color: #447D9B;
}

/* Responsive */
@media (max-width: 768px) {
    .setting-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .setting-control {
        width: 100%;
        justify-content: space-between;
    }
    
    .settings-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}