@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.bide-dashboard-wrapper {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f7f6;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    color: #2c3e50;
    position: relative;
}

.bide-dashboard-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    min-height: 700px;
}

/* --- Mobile Header --- */
.bide-mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--bide-p1) 0%, var(--bide-p2) 100%);
    color: #fff;
    width: 100%;
}

.bide-mobile-title {
    font-size: 20px;
    font-weight: 600;
}

.bide-hamburger-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* --- Sidebar --- */
.bide-dash-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e1e8ed;
    padding: 30px 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.bide-sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.bide-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.bide-close-sidebar-btn {
    background: transparent !important;
    border: none !important;
    font-size: 28px !important;
    color: #888 !important;
    cursor: pointer !important;
    padding: 0 !important;
    min-width: auto !important;
    line-height: 1 !important;
}

.bide-tab-btn {
    display: flex;
    align-items: center;
    width: calc(100% - 30px);
    margin: 5px 15px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #556b82;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bide-tab-btn .dashicons {
    margin-right: 12px;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.bide-tab-btn:hover {
    background: #f0f4f8;
    color: var(--bide-p1);
    transform: translateX(5px);
}

.bide-tab-btn.active {
    background: linear-gradient(135deg, var(--bide-p1) 0%, var(--bide-p2) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* --- Content Area --- */
.bide-dash-content {
    flex: 1 !important;
    width: 100% !important;
    padding: 40px !important;
    background: #f4f7f6 !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

.bide-dash-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 30px;
    color: #1a252f;
}

.bide-tab-pane {
    display: none;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bide-tab-pane.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Widgets Grid --- */
.bide-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.bide-widget {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.bide-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.bide-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bide-a1), var(--bide-a2));
}

.bide-widget h3 {
    margin: 0 0 15px;
    font-size: 13px;
    color: #8898aa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bide-widget-val {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* --- Buttons & Inputs --- */
.bide-btn, .bide-btn-small {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--bide-a1) 0%, var(--bide-a2) 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bide-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.bide-btn:hover, .bide-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- Referral Box --- */
.bide-referral-link-box {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}

.bide-referral-link-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 14px;
    color: #555;
    outline: none;
}

/* --- Tables --- */
.bide-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-radius: 12px;
    overflow: hidden;
}

.bide-table th, .bide-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f4f8;
    font-size: 15px;
}

.bide-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #556b82;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.bide-table tbody tr:hover {
    background: #fafbfc;
}

.bide-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-paid { background: #d4edda; color: #155724; }
.status-failed { background: #f8d7da; color: #721c24; }

/* --- Progress Bar --- */
.bide-plan-box {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.bide-progress-bar-container {
    width: 100%;
    height: 12px;
    background: #eef2f5;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.bide-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #11998e, #38ef7d);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.bide-alert {
    background: #e3f2fd;
    border-left: 5px solid var(--bide-p1);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    color: var(--bide-p1);
    font-size: 15px;
    line-height: 1.6;
}

/* --- Forms --- */
.bide-dash-form input {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.bide-dash-form input:focus {
    border-color: var(--bide-p2);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .bide-mobile-header {
        display: flex;
    }

    .bide-dash-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        transform: translateX(-100%);
        box-shadow: 5px 0 25px rgba(0,0,0,0.1) !important;
        background: #fff !important;
        z-index: 999999 !important;
    }

    .bide-dash-sidebar.open {
        transform: translateX(0);
    }

    .bide-sidebar-header {
        display: flex;
    }

    .bide-dash-content {
        padding: 20px !important;
    }

    .bide-referral-link-box {
        flex-direction: column;
        align-items: stretch;
    }

    .bide-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
