* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #1e293b;
    line-height: 1.6;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 180px;
    background: linear-gradient(180deg, #1a3a5c 0%, #1e4a6d 50%, #1a3a5c 100%);
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 20px 15px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.logo span {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 2px;
    color: #D4A574;
    display: block;
    margin-top: 2px;
}

.sidebar-nav {
    padding: 10px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 400;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-item.active {
    background: linear-gradient(90deg, #D4A574 0%, #c49a6c 100%);
    color: #fff;
    border-left: 3px solid #D4A574;
    border-radius: 0 25px 25px 0;
    margin-right: 10px;
}

.nav-item .material-icons {
    font-size: 20px;
}

.main-content {
    flex: 1;
    margin-left: 180px;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 25px 30px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.admin-info .material-icons {
    font-size: 22px;
    color: #94a3b8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.stat-icon .material-icons {
    font-size: 24px;
    color: #fff;
}

.stat-icon.blue { background: #3b82f6; }
.stat-icon.pink { background: #ec4899; }
.stat-icon.purple { background: #a855f7; }
.stat-icon.green { background: #22c55e; }
.stat-icon.cyan { background: #06b6d4; }
.stat-icon.orange { background: #f97316; }

.stat-count {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

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

.content-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 15px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 10px 12px;
    font-size: 13px;
}

.data-table th {
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.active,
.status-badge.issued {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.resolved,
.status-badge.published {
    background: #dbeafe;
    color: #2563eb;
}

.status-badge.draft {
    background: #f1f5f9;
    color: #64748b;
}

.no-data {
    text-align: center;
    color: #94a3b8;
    padding: 25px !important;
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #D4A574;
    color: #fff;
}

.btn-primary:hover {
    background: #c08b5c;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.btn-danger:hover {
    background: #fecaca;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn .material-icons {
    font-size: 16px;
}

.action-btn.edit {
    background: #e0f2fe;
    color: #0284c7;
}

.action-btn.edit:hover {
    background: #0284c7;
    color: #fff;
}

.action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn.delete:hover {
    background: #dc2626;
    color: #fff;
}

.action-btn.view {
    background: #f0fdf4;
    color: #16a34a;
}

.action-btn.view:hover {
    background: #16a34a;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #334155;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #D4A574;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state .material-icons {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .sidebar-header {
        padding: 15px 10px;
        text-align: center;
    }

    .logo {
        font-size: 14px;
    }

    .logo span {
        display: none;
    }

    .nav-label {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 12px 10px;
        gap: 0;
    }

    .nav-item.active {
        margin-right: 5px;
    }

    .main-content {
        margin-left: 60px;
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tables-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
