/* Admin Layout Styles */
.admin-body {
    font-family: 'Balthazar', serif;
    font-size: 1.1rem;
    background-color: #f8f9fa;
    padding-top: 56px; /* Height of fixed navbar */
    line-height: 1.6;
    color: var(--gray-800);
}

/* Admin Typography - Override global styles */
.admin-body h1, 
.admin-body h2, 
.admin-body h3, 
.admin-body h4, 
.admin-body h5, 
.admin-body h6,
.admin-main h1,
.admin-main h2,
.admin-main h3,
.admin-main h4,
.admin-main h5,
.admin-main h6 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--hunter-green);
    letter-spacing: 0.5px;
}

.admin-card-header h1,
.admin-card-header h2,
.admin-card-header h3,
.admin-card-header h4,
.admin-card-header h5,
.admin-card-header h6 {
    color: white;
}

.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}

.admin-sidebar {
    width: 280px;
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 1000;
    padding: 1rem;
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem 1rem;
    min-height: calc(100vh - 56px);
    width: calc(100vw - 280px);
}

/* Sidebar Styles */
.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-heading {
    font-family: 'Anton', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--hunter-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-section .nav-link {
    color: #6c757d;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-section .nav-link:hover {
    background-color: rgba(56, 102, 65, 0.1);
    color: var(--hunter-green);
}

.sidebar-section .nav-link.active {
    background-color: var(--hunter-green);
    color: white;
}

.sidebar-section .nav-link i {
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

/* Admin Cards */
.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: none;
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.admin-card-header {
    background: linear-gradient(135deg, var(--hunter-green), #2d4a33);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    border-bottom: none;
}

.admin-card-body {
    padding: 1.5rem;
}

/* Stats Cards */
.stats-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--asparagus), var(--yellow-green));
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stats-number {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--hunter-green);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.stats-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: rgba(56, 102, 65, 0.1);
}

/* Admin Tables */
.admin-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-table .table {
    margin-bottom: 0;
}

.admin-table .table thead th {
    font-family: 'Anton', sans-serif;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 400;
    color: var(--hunter-green);
    padding: 1rem;
    letter-spacing: 0.5px;
}

.admin-table .table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
}

.admin-table .table tbody tr:hover {
    background-color: rgba(56, 102, 65, 0.02);
}

/* Admin Buttons */
.btn-admin-primary {
    background: linear-gradient(135deg, var(--hunter-green), #2d4a33);
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-admin-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 102, 65, 0.4);
    color: white;
}

.btn-admin-secondary {
    background-color: white;
    border: 2px solid var(--asparagus);
    color: var(--hunter-green);
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-admin-secondary:hover {
    background-color: var(--asparagus);
    color: #fff;
    transform: translateY(-2px);
}

/* Status Badges */
.badge-published {
    background-color: #198754;
}

.badge-draft {
    background-color: #6c757d;
}

.badge-featured {
    background-color: var(--asparagus);
    color: #fff;
}

/* Forms */
.admin-form .form-label {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    color: var(--hunter-green);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.admin-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.admin-form .form-control:focus {
    border-color: var(--asparagus);
    box-shadow: 0 0 0 0.2rem rgba(106, 153, 78, 0.25);
}

/* Content Editor */
.content-editor {
    min-height: 400px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

/* Quick Actions */
.quick-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yellow-green), #96b54a);
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(167, 201, 87, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(167, 201, 87, 0.6);
    color: white;
}

/* Responsive Design */
@media (min-width: 1400px) {
    .admin-body {
        font-size: 1.2rem;
    }
}

@media (max-width: 991.98px) {
    .admin-body {
        font-size: 1.05rem;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }

    .stats-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .admin-body {
        font-size: 1rem;
    }
    
    .admin-main {
        padding: 0.5rem;
    }

    .admin-card-body {
        padding: 1rem;
    }

    .stats-number {
        font-size: 2rem;
    }

    .quick-actions {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Chart Containers */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.chart-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--hunter-green);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background-color: rgba(56, 102, 65, 0.02);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-right: 1rem;
}

.activity-new {
    background-color: var(--asparagus);
    color: #fff;
}

.activity-edit {
    background-color: var(--yellow-green);
}

.activity-delete {
    background-color: #dc3545;
}

.activity-comment {
    background-color: #198754;
}