/* MLM Network Pro - Premium Light Mode Dashboard Styles */

:root {
    --mlm-bg-primary: #f8fafc; /* Crisp light gray background */
    --mlm-card-bg: rgba(255, 255, 255, 0.85); /* Semi-transparent glassy white card */
    --mlm-card-border: rgba(0, 0, 0, 0.06); /* Soft dark border */
    --mlm-text-color: #1e293b; /* Dark slate text */
    --mlm-text-muted: #64748b; /* Slate muted text */
    --mlm-border-color: rgba(0, 0, 0, 0.06);
    --mlm-primary: #3b82f6;
    --mlm-primary-glow: rgba(59, 130, 246, 0.1);
    --mlm-primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --mlm-success: #10b981;
    --mlm-success-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --mlm-warning: #f59e0b;
    --mlm-danger: #ef4444;
    --mlm-danger-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    --mlm-font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--mlm-bg-primary);
    color: var(--mlm-text-color);
    font-family: var(--mlm-font-family);
    -webkit-font-smoothing: antialiased;
}

/* Authentication Card Styling */
.mlm-auth-card {
    max-width: 480px;
    margin: 60px auto;
    background: var(--mlm-card-bg);
    border: 1px solid var(--mlm-card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255,255,255,0.8);
}

.mlm-auth-card h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--mlm-text-color);
    text-align: center;
    background: linear-gradient(120deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mlm-auth-card .subtitle {
    font-size: 14px;
    color: var(--mlm-text-muted);
    margin-bottom: 24px;
    text-align: center;
}

/* Login Tab Options */
.login-method-tabs {
    border-bottom: 1px solid var(--mlm-card-border);
    padding-bottom: 8px;
}
.login-method-tabs .nav-link {
    background: transparent !important;
    color: var(--mlm-text-muted) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.login-method-tabs .nav-link.active {
    color: #ffffff !important;
    background: var(--mlm-primary-gradient) !important;
    box-shadow: 0 4px 12px var(--mlm-primary-glow);
}

/* Custom OTP Spacing */
.letter-spacing-5 {
    letter-spacing: 8px;
    font-size: 24px;
    font-weight: 700;
    text-indent: 8px;
}

/* Form Controls */
.mlm-auth-card .form-label,
.mlm-dashboard-container .form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--mlm-text-color);
    margin-bottom: 8px;
}

.mlm-auth-card .form-control,
.mlm-dashboard-container .form-control,
.mlm-dashboard-container .form-select {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--mlm-text-color) !important;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.25s ease;
}

.mlm-auth-card .form-control:focus,
.mlm-dashboard-container .form-control:focus,
.mlm-dashboard-container .form-select:focus {
    border-color: var(--mlm-primary) !important;
    box-shadow: 0 0 0 4px var(--mlm-primary-glow) !important;
    outline: none;
}

.mlm-auth-card .input-group-text,
.mlm-dashboard-container .input-group-text {
    background-color: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--mlm-text-muted) !important;
    border-radius: 10px 0 0 10px;
}

/* Dashboard Container Styles */
.mlm-dashboard-container {
    padding: 24px 0;
}

.dashboard-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--mlm-text-color);
    letter-spacing: -0.5px;
    background: linear-gradient(120deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--mlm-card-bg);
    border: 1px solid var(--mlm-card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.mlm-activation-card {
    max-width: 550px;
    margin: 80px auto;
    padding: 40px;
    background: var(--mlm-card-bg);
    border: 1px solid var(--mlm-card-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* Shared tabs design */
.dashboard-tabs {
    background-color: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.dashboard-tabs .nav-item {
    margin: 0;
}
.dashboard-tabs .nav-link {
    color: var(--mlm-text-muted) !important;
    border: none !important;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    background: transparent !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
}
.dashboard-tabs .nav-link:hover {
    color: var(--mlm-text-color) !important;
    background: rgba(0, 0, 0, 0.03) !important;
}
.dashboard-tabs .nav-link.active {
    color: #ffffff !important;
    background: var(--mlm-primary-gradient) !important;
    box-shadow: 0 4px 12px var(--mlm-primary-glow) !important;
}

/* Referral link block */
.referral-sharing-box {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--mlm-card-border);
    padding: 10px 16px;
    border-radius: 12px;
    display: inline-block;
    max-width: 100%;
}

/* Buttons */
.btn-primary {
    background: var(--mlm-primary-gradient) !important;
    border: none !important;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--mlm-primary-glow);
    transition: all 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
}

.btn-success {
    background: var(--mlm-success-gradient) !important;
    border: none !important;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

/* Table styling */
.table {
    color: var(--mlm-text-color) !important;
    border-color: var(--mlm-card-border) !important;
}
.table th {
    background-color: #f1f5f9 !important;
    color: var(--mlm-text-color) !important;
    font-weight: 600;
    border-bottom: 2px solid var(--mlm-card-border) !important;
    padding: 14px 16px;
}
.table td {
    background-color: transparent !important;
    padding: 14px 16px;
    vertical-align: middle;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.01) !important;
}
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

/* Binary Network Tree visualization */
.mlm-tree-wrapper {
    display: inline-block;
    white-space: nowrap;
    padding: 30px;
}
.mlm-tree-node-box {
    display: inline-block;
    vertical-align: top;
    text-align: center;
}
.mlm-node {
    display: inline-block;
    width: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff !important;
    border: 1px solid var(--mlm-card-border) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.mlm-node-empty {
    width: 120px;
    font-size: 11px;
    border: 1px dashed var(--mlm-card-border) !important;
    background: rgba(0, 0, 0, 0.02) !important;
    color: var(--mlm-text-muted);
    border-radius: 8px;
    padding: 12px;
}
.mlm-tree-children {
    position: relative;
    padding-top: 24px;
}
.mlm-tree-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 24px;
    background-color: var(--mlm-card-border);
}

/* Micro animations */
.animate-pulse {
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
