/* Admin Panel Styles */
:root {
    --primary-color: #FFC107;
    --sidebar-bg: #333333;
    --sidebar-text: #F2F2F2;
    --bg-light: #F4F6F8;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #777777;
    --danger: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    color: var(--white);
    font-size: 20px;
}

.sidebar-header h2 span {
    color: var(--primary-color);
}

.sidebar-header p {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-nav li a:hover,
.sidebar-nav li.active a {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary-color);
    color: var(--white);
}

.sidebar-nav li a i {
    width: 25px;
    margin-right: 10px;
}

.badge {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: auto;
    font-weight: bold;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.btn-logout:hover {
    color: var(--primary-color);
}

.btn-logout i {
    margin-right: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 25px;
}

/* KPI Cards */
.kpi-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.kpi-icon {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.kpi-data {
    text-align: right;
}

.kpi-data h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.kpi-data p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.trend {
    font-size: 12px;
    font-weight: 600;
}

.trend.up {
    color: var(--success);
}

.trend.down {
    color: var(--danger);
}

.trend.new {
    color: var(--info);
}

/* Activity & Actions */
.recent-activity-section {
    grid-column: span 3;
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.quick-actions-section {
    grid-column: span 1;
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.section-header h2,
.quick-actions-section h2 {
    font-size: 18px;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
}

.admin-table td {
    font-size: 14px;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.new {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info);
}

.status-badge.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.status-badge.read {
    background-color: #eee;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    margin-bottom: 15px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recent-activity-section {
        grid-column: span 2;
    }

    .quick-actions-section {
        grid-column: span 2;
    }
}

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

    .sidebar-header,
    .sidebar-header p,
    .sidebar-nav span,
    .badge,
    .btn-logout span {
        display: none;
    }

    .sidebar-nav li a {
        padding: 15px;
        justify-content: center;
    }

    .sidebar-nav li a i {
        margin: 0;
        font-size: 20px;
    }

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

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

    .recent-activity-section,
    .quick-actions-section {
        grid-column: span 1;
    }
}