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

.admin-layout .sidebar {
    width: 240px;
    background-color: #1a237e;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-layout .sidebar .logo {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-layout .sidebar .logo h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.admin-layout .sidebar .logo p {
    font-size: 12px;
    opacity: 0.7;
}

.admin-layout .sidebar .nav-menu {
    padding: 20px 0;
}

.admin-layout .sidebar .nav-menu ul li {
    margin-bottom: 4px;
}

.admin-layout .sidebar .nav-menu ul li a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
}

.admin-layout .sidebar .nav-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-layout .sidebar .nav-menu ul li.active a {
    background-color: #4CAF50;
    color: white;
}

.admin-layout .main-content {
    flex: 1;
    margin-left: 240px;
    background-color: #f5f5f5;
}

.admin-layout .header {
    background-color: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-layout .header .header-left h1 {
    font-size: 24px;
    font-weight: 600;
}

.admin-layout .header .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-layout .header .user-info {
    color: #666;
    font-size: 14px;
}

.admin-layout .header .logout-btn {
    background-color: #f5f5f5;
    color: #666;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.admin-layout .header .logout-btn:hover {
    background-color: #e0e0e0;
}

.admin-layout .content-wrapper {
    padding: 32px;
}

.admin-layout .stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.admin-layout .stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-layout .stat-card .stat-icon {
    font-size: 40px;
}

.admin-layout .stat-card .stat-info h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.admin-layout .stat-card .stat-info .stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.admin-layout .stat-card .stat-info .stat-trend {
    font-size: 12px;
    font-weight: 500;
}

.admin-layout .stat-card .stat-info .stat-trend.up {
    color: #4CAF50;
}

.admin-layout .stat-card .stat-info .stat-trend.down {
    color: #F44336;
}

.admin-layout .charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.admin-layout .chart-card {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-layout .chart-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.admin-layout .chart-placeholder {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 20px 0;
}

.admin-layout .chart-bar {
    width: 40px;
    background: linear-gradient(to top, #4CAF50, #81C784);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}

.admin-layout .chart-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
}

.admin-layout .chart-labels span {
    font-size: 12px;
    color: #666;
}

.admin-layout .pie-chart {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-layout .pie-segment {
    padding: 12px 16px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.admin-layout .recent-orders {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-layout .recent-orders h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.admin-layout .config-section {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-layout .config-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-layout .config-display {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-layout .config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.admin-layout .config-item .config-label {
    color: #666;
    font-size: 14px;
}

.admin-layout .config-item .config-value {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.admin-layout .btn-edit {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 16px;
    transition: background-color 0.3s;
}

.admin-layout .btn-edit:hover {
    background-color: #45a049;
}