/* ============================================
   MOBILE SLIDE OVERLAYS - AMAZON STYLE
   Fast slide-in panels from the side
   ============================================ */

/* Overlay backdrop */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9998;
    pointer-events: none;
    transition: background 0.2s ease;
}

.mobile-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: all;
}

/* Slide panel container */
.mobile-slide-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    background: white;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-slide-panel.active {
    transform: translateX(0);
}

/* Panel header */
.mobile-panel-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #7d9d43 0%, #5a7330 100%);
    padding: 60px 20px 20px;
    color: white;
    z-index: 100;
}

.mobile-panel-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.mobile-panel-close:active {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-panel-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.mobile-panel-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 8px 0 0 0;
}

/* Panel content */
.mobile-panel-content {
    padding: 0;
    background: #f8f9fa;
    min-height: calc(100vh - 140px);
}

/* ============================================
   ACCOUNT PANEL SPECIFIC STYLES
   ============================================ */

/* Quick actions for account */
.account-quick-pills {
    padding: 15px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.account-quick-pills::-webkit-scrollbar {
    display: none;
}

.account-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-right: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-pill:active {
    background: #e9ecef;
    transform: scale(0.95);
}

.account-pill.active {
    background: #7d9d43;
    color: white;
    border-color: #7d9d43;
}

/* Account sections */
.account-section {
    background: white;
    margin-bottom: 12px;
}

.account-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.account-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.account-section-link {
    color: #007bff;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

/* Empty states */
.account-empty-state {
    padding: 40px 20px;
    text-align: center;
}

.account-empty-state i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
    display: block;
}

.account-empty-state h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.account-empty-state p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.account-empty-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #7d9d43;
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.account-empty-btn:active {
    background: #6a8439;
}

/* Tab content */
.account-tab-content {
    display: none;
}

.account-tab-content.active {
    display: block;
}

/* ============================================
   MENU PANEL SPECIFIC STYLES
   ============================================ */

.menu-panel-content {
    padding: 20px;
    background: white;
}

.menu-links {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.menu-link-item {
    border-bottom: 1px solid #f0f0f0;
}

.menu-link-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.menu-link-item a:active {
    color: #7d9d43;
}

.menu-link-item i.fa-chevron-right {
    color: #999;
    font-size: 14px;
}

.menu-logout-btn {
    width: 100%;
    margin-top: 30px;
    padding: 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.menu-logout-btn:active {
    background: #c82333;
}

/* Prevent body scroll when panel is open */
body.panel-open {
    overflow: hidden;
}