:root {
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 80px;
    --topbar-height: 70px;
    --primary-color: #003366;
    --secondary-color: #FF6B00;
    --accent-color: #00A0E9;
    --dark-color: #1A1A1A;
    --light-color: #F5F7FA;
    --text-color: #333333;
    --text-light: #777777;
    --white: #FFFFFF;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --border-color: #e0e0e0;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #f5f7fa;
    overflow-x: hidden;
}

/* Admin Container */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Admin Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    color: var(--white);
    transition: all 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.admin-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.admin-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.admin-logo h3 {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-sidebar.collapsed .admin-logo h3 {
    display: none;
}

.admin-nav ul {
    list-style: none;
    padding: 15px 0;
}

.admin-nav li {
    position: relative;
}

.admin-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.admin-nav a:hover, .admin-nav li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.admin-nav i {
    font-size: 1.1rem;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-sidebar.collapsed .admin-nav span {
    display: none;
}

.admin-sidebar.collapsed .admin-nav i {
    margin-right: 0;
    font-size: 1.3rem;
}

/* Admin Main Content */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
}

.admin-sidebar.collapsed ~ .admin-main {
    margin-left: var(--sidebar-collapsed-width);
}

/* Admin Topbar */
.admin-topbar {
    height: var(--topbar-height);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-color);
    cursor: pointer;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--light-color);
}

.topbar-left h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

.admin-profile {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-profile:hover {
    background: var(--light-color);
}

.admin-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.admin-profile span {
    font-weight: 500;
    margin-right: 8px;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 95;
}

.admin-profile:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
}

.profile-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-dropdown a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.profile-dropdown i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

/* Admin Content */
.admin-content {
    padding: 20px;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-right: 15px;
}

.card-icon.blue {
    background: var(--primary-color);
}

.card-icon.orange {
    background: var(--secondary-color);
}

.card-icon.green {
    background: var(--success-color);
}

.card-icon.purple {
    background: #6f42c1;
}

.card-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Dashboard Row */
.dashboard-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 1200px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

/* Recent Pages */
.recent-pages, .quick-actions {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.view-all {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all:hover {
    text-decoration: underline;
}

.card-body {
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

table td {
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.published {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.status-badge.draft {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    color: var(--text-light);
    transition: all 0.3s ease;
    margin-right: 5px;
}

.action-btn:hover {
    color: var(--white);
}

.action-btn.edit:hover {
    background: var(--info-color);
}

.action-btn.delete:hover {
    background: var(--danger-color);
}

/* Quick Actions */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: var(--light-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.action-btn i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.action-btn span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        left: -100%;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-sidebar.collapsed ~ .admin-main {
        margin-left: 0;
    }
}