/* Control Room Module Styles */
.page-subtitle {
    color: #547A95;
    margin-top: 4px;
}

.status-banner {
    background: #2C3947;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.status-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-text {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.status-detail {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.status-banner.status-normal { background: #2C3947; }
.status-banner.status-busy { background: #AE2448; }
.status-banner.status-warning { background: #AE2448; }

.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E8EDF2;
}

.tab-btn {
    padding: 8px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #547A95;
}

.tab-btn:hover {
    color: #2C3947;
}

.tab-btn.active {
    color: #2C3947;
    border-bottom-color: #2C3947;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 767px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.setting-card {
    background: #fff;
    border: 1px solid #E8EDF2;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.setting-card.warning-card {
    border-left: 3px solid #AE2448;
}

.card-header {
    flex: 2;
}

.card-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-header p {
    font-size: 12px;
    color: #547A95;
}

.card-control {
    flex: 1;
    min-width: 120px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.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: #fff;
}

.toggle-label {
    margin-left: 12px;
    font-size: 13px;
    font-weight: 500;
    min-width: 50px;
}

.slider-control {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.slider-control input {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: #E8EDF2;
    border-radius: 2px;
    outline: none;
}

.slider-control input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #2C3947;
    border-radius: 4px;
    cursor: pointer;
}

.slider-value {
    display: flex;
    align-items: center;
    gap: 4px;
}

.value-display {
    font-size: 14px;
    font-weight: 600;
    min-width: 30px;
    text-align: right;
}

.value-unit {
    font-size: 12px;
    color: #547A95;
}

.number-control {
    min-width: 150px;
}

.number-input-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #E8EDF2;
    border-radius: 4px;
    padding: 0 8px;
}

.currency, .percent, .unit {
    font-size: 12px;
    color: #547A95;
}

.number-input {
    width: 100%;
    padding: 8px 0;
    border: none;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
}

.number-input:focus {
    outline: none;
}

.text-input, .textarea-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #E8EDF2;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.text-input:focus, .textarea-input:focus {
    outline: none;
    border-color: #547A95;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E8EDF2;
}

@media (max-width: 767px) {
    .setting-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-control {
        width: 100%;
        justify-content: space-between;
    }
    .action-buttons {
        flex-direction: column;
    }
    .action-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   DEVELOPMENT CARD STYLES
   ============================================ */

.development-card {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-left: 3px solid #F59E0B !important;
}

.dev-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #F59E0B;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.dev-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #FEF3C7;
    border-radius: 4px;
    color: #92400E;
    font-size: 12px;
}

.dev-icon-small {
    width: 16px;
    height: 16px;
    color: #F59E0B;
}

.dev-text {
    font-size: 12px;
    font-weight: 500;
}

.dev-preview-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.dev-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #F1F5F9;
    border-radius: 4px;
    font-size: 12px;
    color: #64748B;
    cursor: not-allowed;
    opacity: 0.6;
}

.dev-option i {
    width: 14px;
    height: 14px;
}

.dev-option.disabled {
    filter: grayscale(0.2);
}

.dev-note {
    font-size: 10px;
    color: #94A3B8;
    margin-left: auto;
}

.dev-preview-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dev-list-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #F1F5F9;
    border-radius: 4px;
    color: #64748B;
    font-size: 12px;
    justify-content: center;
}

.dev-list-empty i {
    width: 14px;
    height: 14px;
}

.dev-list-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #E8EDF2;
    border-radius: 4px;
    color: #547A95;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.dev-list-note:hover {
    background: #D1D9E6;
}

.dev-list-note i {
    width: 14px;
    height: 14px;
}

/* Dark mode support untuk development card */
@media (prefers-color-scheme: dark) {
    .development-card {
        background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    }
    
    .dev-preview {
        background: #422006;
        color: #FDE68A;
    }
    
    .dev-option {
        background: #1E293B;
        color: #94A3B8;
    }
    
    .dev-list-empty {
        background: #1E293B;
        color: #94A3B8;
    }
    
    .dev-list-note {
        background: #2D3A4B;
        color: #A0C4E8;
    }
    
    .dev-list-note:hover {
        background: #3D4A5B;
    }
}