﻿:root {
    --bg: #f5f5f5;
    --text: #222;
    --card: #fff;
}

body.dark {
    --bg: #121212;
    --text: #eaeaea;
    --card: #1e1e1e;
}
    body.dark .modal-content {
        background-color: #222 !important;
        color: #eee !important;
        border-color: #444 !important;
    }

    body.dark .modal-header,
    body.dark .modal-footer {
        background-color: #333 !important;
        border-color: #444 !important;
    }

    body.dark .modal-title {
        color: #fff !important;
    }

    body.dark .btn-close {
        filter: invert(1);
    }

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

/* Panel footer */
nav {
    border-bottom: 1px solid #dee2e6;
}

/* Form container toggle */
.form-container {
    display: none;
    padding: 16px;
    background: var(--card);
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .form-container.active {
        display: block;
    }

/* Card footer */
.card-footer {
    border-top: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* Panel footer */
footer {
    flex-shrink: 0; /* jangan mengecil */
    text-align: center;
    padding: 0.75rem 0;
    background: #f8f9fa;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #333;
    color: #dee2e6;
    text-align: center;
    padding: 10px;
}

li.nav-item a.nav-link {
    color: #dee2e6;
}

/* Responsive form fields */
@media (min-width: 600px) {
    label, input, textarea, select {
        flex: 1 1 45%;
    }
}
