/* 
 * Merchant Layout & Sidebar Styles 
 * Requires style.css variables 
 */

:root {
    --sidebar-width: 250px;
    --mp-bg: var(--light-grey);
    --mp-white: var(--white);
    --mp-dark: var(--dark-grey);
    --mp-text: var(--text-muted);
    --mp-primary: var(--primary-yellow);
    --mp-border: var(--border-color);
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--mp-bg); 
    margin: 0; 
    padding: 0; 
    color: var(--text-dark); 
    display: flex; 
    height: 100vh; 
    overflow: hidden; 
}

/* Sidebar */
.mp-sidebar { 
    width: var(--sidebar-width); 
    background-color: var(--dark-grey); 
    height: 100vh; 
    border-right: 1px solid rgba(255,255,255,0.1); 
    display: flex; 
    flex-direction: column; 
    overflow-y: auto; 
    flex-shrink: 0; 
}

.mp-logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 24px; 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--primary-yellow); 
}

.mp-logo i { 
    color: var(--dark-grey); 
    background: var(--primary-yellow); 
    padding: 8px; 
    border-radius: 8px; 
}

.mp-nav { 
    padding: 12px 0; 
    flex: 1; 
}

.mp-nav-item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 12px 24px; 
    color: #ADB5BD; 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 0.95rem; 
    transition: all 0.2s; 
    cursor: pointer; 
}

.mp-nav-item:hover, .mp-nav-item.active-parent { 
    background-color: var(--indigo); 
    color: var(--white); 
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3); 
}

.mp-nav-item .icon-box { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.mp-nav-item .icon-box i { 
    font-size: 1.1rem; 
    width: 20px; 
    text-align: center; 
}

.mp-sub-nav { 
    list-style: none; 
    padding: 8px 0 8px 56px; 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    background: rgba(0,0,0,0.2); 
}

.mp-sub-nav a { 
    text-decoration: none; 
    color: #ADB5BD; 
    font-size: 0.9rem; 
    font-weight: 500; 
    transition: color 0.2s;
}

.mp-sub-nav a:hover, .mp-sub-nav a.active { 
    color: var(--white); 
}

.mp-sidebar-bottom { 
    padding: 24px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
}

.mp-logout { 
    color: #EF4444 !important; 
    font-weight: 600; 
}

.mp-logout:hover { 
    background: rgba(239, 68, 68, 0.1); 
}

/* Main Area Layout */
.mp-main-area { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    overflow-y: auto; 
    padding: 0 32px 32px 32px; 
    background-image: var(--zellij-bg); 
    background-color: rgba(255,255,255,0.02); 
}

/* Header Defaults */
.mp-top-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 32px 0 24px 0; 
    flex-shrink: 0;
}

.mp-header-left h1 { 
    font-size: 1.8rem; 
    font-weight: 800; 
    margin: 0; 
    color: var(--text-dark); 
}

.mp-header-left p { 
    color: var(--text-muted); 
    margin: 4px 0 0 0; 
    font-size: 0.85rem;
}

/* Header Right Elements (Search, Buttons, Profile) */
.mp-header-right { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.mp-search-top { 
    background: var(--white); 
    border: 1px solid var(--border-color); 
    padding: 12px 20px; 
    border-radius: 24px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    width: 300px; 
    box-shadow: var(--shadow-sm); 
}

.mp-search-top input { 
    border: none; 
    outline: none; 
    background: transparent; 
    font-size: 0.95rem; 
    width: 100%; 
    font-weight: 600; 
}

.mp-search-top i { 
    color: var(--indigo); 
}

.btn-header { 
    background: var(--white); 
    border: 1px solid var(--border-color); 
    color: var(--text-dark); 
    padding: 12px 20px; 
    border-radius: 12px; 
    font-size: 0.9rem; 
    font-weight: 700; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    transition: all 0.3s; 
    box-shadow: var(--shadow-sm); 
}

.btn-header:hover { 
    border-color: var(--indigo); 
    transform: translateY(-2px); 
}

.btn-header.btn-primary { 
    background: var(--indigo); 
    border: none; 
    color: white; 
    border-radius: 20px; 
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.2); 
}

.btn-header.btn-primary:hover { 
    background: #3730A3; 
    box-shadow: 0 6px 15px rgba(67, 56, 202, 0.3); 
}

.mp-admin-profile { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-left: 12px; 
    padding-left: 20px; 
    border-left: 1px solid var(--border-color);
}

.mp-admin-profile img { 
    width: 44px; 
    height: 44px; 
    border-radius: 12px; 
    border: 2px solid var(--white); 
    box-shadow: var(--shadow-sm); 
}
