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

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

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

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

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

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

.merchant-layout .sidebar .shop-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
}

.merchant-layout .sidebar .shop-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-layout .sidebar .shop-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.merchant-layout .sidebar .shop-status {
    font-size: 12px;
    color: #4CAF50;
}

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

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

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

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

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

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

.merchant-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);
}

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

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

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

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

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

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

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

.merchant-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);
}

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

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

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

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

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

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

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

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

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

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

.merchant-layout .chart-bar {
    width: 40px;
    background: linear-gradient(to top, #1976D2, #42A5F5);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}

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

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

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

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

.merchant-layout .lock-customer-section {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.merchant-layout .lock-customer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.merchant-layout .lock-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.merchant-layout .lock-stat {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.merchant-layout .lock-stat .lock-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.merchant-layout .lock-stat .lock-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #1976D2;
}