/* ============================================
   CSS VARIABLES - TEMA LOGO ADMIN
   ============================================ */
:root {
    /* Warna Logo */
    --bg-primary: #2C353D;
    --bg-secondary: #3A4550;
    --bg-tertiary: #4A5560;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --text-muted: #B0B0B0;
    --accent-color: #4DABE6;
    --accent-hover: #3D9BC6;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
    --border-color: #4A5560;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.2);
    --shadow: 0 4px 15px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.4);
    --gradient-primary: linear-gradient(135deg, #4DABE6 0%, #2C353D 100%);
    --gradient-secondary: linear-gradient(135deg, #4DABE6 0%, #FFFFFF 100%);
}

/* Light Mode Override */
[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --bg-tertiary: #FAFAFA;
    --text-primary: #2C353D;
    --text-secondary: #4A5560;
    --text-muted: #6C757D;
    --accent-color: #4DABE6;
    --accent-hover: #3D9BC6;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   ADMIN LOGIN OVERLAY
   ============================================ */
.admin-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2C353D 0%, #1a1a2e 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 2rem;
    color: #2C353D;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 1rem;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.login-footer p {
    color: #DC3545;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-block {
    width: 100%;
}

/* ============================================
   ADMIN CONTENT WRAPPER
   ============================================ */
.admin-content-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */
.admin-sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2C353D 0%, #1a1a2e 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s;
}

.sidebar-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    color: #4DABE6;
    margin-bottom: 0.5rem;
}

.sidebar-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: rgba(255,255,255,0.1);
    border-left-color: #4DABE6;
    color: white;
}

.sidebar-nav a i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.admin-content {
    margin-left: 250px;
    flex: 1;
    padding: 2rem;
    transition: all 0.3s;
}

/* ============================================
   HEADER
   ============================================ */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.admin-header h1 {
    color: #2C353D;
    font-size: 2rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.admin-user i {
    font-size: 1.5rem;
    color: #4DABE6;
}

.admin-user span {
    color: #2C353D;
    font-weight: 600;
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    border-left: 4px solid #4DABE6;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stat-card i {
    font-size: 2.5rem;
    color: #4DABE6;
}

.stat-card:nth-child(2) i {
    color: #28A745;
}

.stat-card:nth-child(3) i {
    color: #FFC107;
}

.stat-card:nth-child(4) i {
    color: #DC3545;
}

.stat-info h3 {
    font-size: 2rem;
    color: #2C353D;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.admin-section:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.section-header h2 {
    color: #2C353D;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.section-header h2 i {
    color: #4DABE6;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   TABLES
   ============================================ */
.posts-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

thead {
    background-color: #2C353D;
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody tr {
    transition: background-color 0.3s;
}

/* ============================================
   CHAT MODERATION
   ============================================ */
.chat-moderation {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.chat-message-item {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.chat-message-item:hover {
    background-color: #f8f9fa;
}

.message-info {
    display: flex;
    flex-direction: column;
}

.message-info strong {
    color: #2C353D;
    font-size: 0.95rem;
}

.message-info span {
    color: #666;
    font-size: 0.85rem;
}

.message-text {
    color: #2C353D;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background-color: #4DABE6;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #3D9BC6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(77, 171, 230, 0.3);
}

.btn-danger {
    background-color: #DC3545;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6C757D;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-edit {
    background-color: #FFC107;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: all 0.3s;
}

.btn-edit:hover {
    background-color: #e0a800;
}

.btn-delete {
    background-color: #DC3545;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2C353D;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: #f8f9fa;
    color: #2C353D;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4DABE6;
    box-shadow: 0 0 0 3px rgba(77, 171, 230, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 0.5rem;
}

.settings-form {
    max-width: 600px;
}

.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form label {
    font-weight: 600;
    color: #2C353D;
}

.settings-form input,
.settings-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 53, 61, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close:hover {
    color: #DC3545;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #2C353D;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    background-color: #28A745;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateX(150%);
    transition: transform 0.3s;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background-color: #DC3545;
}

.toast.warning {
    background-color: #FFC107;
    color: #2C353D;
}

/* ============================================
   BACKUP ACTIONS
   ============================================ */
.backup-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.backup-actions button {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4DABE6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3D9BC6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.admin-section {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .chat-message-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .message-actions {
        width: 100%;
    }

    .message-actions button {
        flex: 1;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .sidebar-nav a {
        padding: 0.75rem 1rem;
    }

    .sidebar-header h2 {
        font-size: 1.2rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card i {
        font-size: 2rem;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 90%;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-danger {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sidebar-header h2 {
        font-size: 1rem;
    }

    .sidebar-nav a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .admin-header h1 {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card i {
        font-size: 1.8rem;
    }

    .stat-info h3 {
        font-size: 1.3rem;
    }

    .stat-info p {
        font-size: 0.8rem;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .posts-table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.75rem;
    }

    .chat-moderation {
        max-height: 300px;
    }

    .chat-message-item {
        padding: 0.75rem;
    }

    .message-text {
        font-size: 0.8rem;
    }

    .modal-content {
        margin: 15% auto;
        padding: 1rem;
    }

    .modal-content h2 {
        font-size: 1.3rem;
    }

    .toast {
        left: 10px;
        right: 10px;
        bottom: 10px;
        font-size: 0.9rem;
    }

    .admin-user {
        font-size: 0.85rem;
    }

    .admin-user i {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .admin-sidebar {
        width: 280px;
    }

    .admin-content {
        margin-left: 280px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: row;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .admin-sidebar,
    .btn-primary,
    .btn-danger,
    .btn-edit,
    .btn-delete,
    .toast {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .admin-content {
        margin-left: 0;
    }

    .admin-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    table {
        page-break-inside: auto;
    }

    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    thead {
        display: table-header-group;
    }

    tfoot {
        display: table-footer-group;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #4DABE6;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }

    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }

    .stat-card,
    .admin-section {
        border: 2px solid #000;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ============================================
   LOADING STATES
   ============================================ */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading-state .loading {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* ============================================
   ERROR STATES
   ============================================ */
.error-state {
    text-align: center;
    padding: 3rem;
    color: #DC3545;
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ============================================
   SUCCESS STATES
   ============================================ */
.success-state {
    text-align: center;
    padding: 3rem;
    color: #28A745;
}

.success-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background-color: #4DABE6;
    color: white;
}

.badge-success {
    background-color: #28A745;
    color: white;
}

.badge-danger {
    background-color: #DC3545;
    color: white;
}

.badge-warning {
    background-color: #FFC107;
    color: #2C353D;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 2rem 0;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #4DABE6;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ACTIVITY LOG
   ============================================ */
.activity-log {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 1rem;
    background: #f8f9fa;
}

.log-entry {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry strong {
    color: #4DABE6;
}

.log-entry span {
    color: #2C353D;
}

.log-entry small {
    color: #666;
    font-size: 0.8rem;
}

/* ============================================
   NOTIFICATION PANEL
   ============================================ */
.notification-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 3000;
    display: none;
}

.notification-panel.show {
    display: block;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #f8f9fa;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: #DC3545;
    border-radius: 50%;
}

/* ============================================
   ANALYTICS PANEL
   ============================================ */
.analytics-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.analytics-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.analytics-card h3 {
    font-size: 2rem;
    color: #4DABE6;
    margin-bottom: 0.5rem;
}

.analytics-card p {
    color: #666;
}

/* ============================================
   CARD
   ============================================ */
.card {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

/* ============================================
   TABLE
   ============================================ */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table thead {
    background: #fafafa;
}

.table tbody tr:hover {
    background: #fafafa;
}

/* ============================================
   FORM
   ============================================ */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    color: #2C353D;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #4DABE6;
    box-shadow: 0 0 0 3px rgba(77, 171, 230, 0.1);
}

.form-control::placeholder {
    color: #999;
}

/* ============================================
   BUTTON GROUP
   ============================================ */
.btn-group {
    display: flex;
    gap: 0.5rem;
}

.btn-group .btn {
    flex: 1;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   FLEXBOX UTILITIES
   ============================================ */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* ============================================
   FINAL TOUCHES
   ============================================ */
/* Ensure all elements are accessible */
@media (prefers-contrast: high) {
    .btn,
    .theme-toggle {
        border: 2px solid currentColor;
    }
}

/* Improve touch targets for mobile */
@media (pointer: coarse) {
    .btn,
    .sidebar-nav a,
    .theme-toggle {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Smooth transitions for theme changes */
body,
.admin-sidebar,
.admin-section,
.card,
.modal-content {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   END OF CSS
   ============================================ */