/* File: /public_html/assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-dark: #0a1a33;
    --primary-light: #162b4d; 
    --accent: #d4af37;
    --text-light: #ffffff;
    --text-muted: #a0aec0;
    --success: #00c853;
    --danger: #ff3d00;
}

* { box-sizing: border-box; }

body, html {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-dark);
    margin: 0;
    padding: 0;
    color: var(--text-light);
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* --- APP HEADER (FIXED TOP BAR) --- */
.app-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 15px; /* Compact padding */
    background: rgba(10, 26, 51, 0.98); 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    backdrop-filter: blur(10px);
    height: 60px; /* Fixed height */
}

/* Left Side: Logo + Firm Name */
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-brand img {
    height: 35px;
    width: auto;
    border-radius: 5px; /* Optional rounded corners */
}
.header-text {
    display: flex;
    flex-direction: column;
}
.header-text h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.header-text small {
    font-size: 10px;
    color: var(--accent);
}

/* Right Side: User Name + Code */
.header-profile {
    text-align: right;
}
.header-profile h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
}
.header-profile span {
    display: block;
    font-size: 10px;
    color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
    display: inline-block;
}

/* --- MAIN CONTENT ADJUSTMENT --- */
.dashboard-content { 
    margin-top: 60px; /* Matches header height */
    padding: 20px; 
    padding-bottom: 90px; 
    width: 100%; 
}

/* --- REST OF CSS (Kept Same) --- */
.auth-wrapper { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px 20px; width: 100%; }
.auth-container { width: 100%; max-width: 400px; margin: 0 auto; }
.brand-logo-container { text-align: center; margin-bottom: 30px; }
.brand-logo-img { max-width: 140px; height: auto; margin-bottom: 15px; }
.auth-title { font-size: 22px; font-weight: 600; text-align: center; margin: 0 0 5px 0;}
.auth-subtitle { color: var(--text-muted); text-align: center; margin-bottom: 25px; font-size: 14px; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.form-control { width: 100%; padding: 14px; background-color: var(--primary-light); border: 1px solid transparent; border-radius: 12px; font-size: 14px; color: var(--text-light); font-family: 'Poppins', sans-serif; }
.form-control:focus { border-color: var(--accent); outline: none; background-color: #1c345c; }
.btn-primary { width: 100%; background: linear-gradient(135deg, #162b4d 0%, #1b3a6b 100%); color: #fff; padding: 15px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; font-weight: 600; font-size: 16px; cursor: pointer; margin-top: 10px; transition: 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.btn-primary:hover { background: #1b3a6b; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.text-right { text-align: right; margin-bottom: 20px; }
.text-center { text-align: center; }
.mt-3 { margin-top: 25px; }
.text-small, a.text-small { font-size: 14px; color: var(--text-muted); text-decoration: none; }
a.text-small:hover { color: var(--accent); }
.auth-footer-text { font-size: 14px; color: var(--text-muted); }
.auth-footer-text a { color: var(--accent); font-weight: 600; }
#sponsor-name { font-size: 13px; margin-top: 5px; font-weight: 500; display: block; min-height: 20px; }
.balance-card { background: linear-gradient(135deg, #162b4d 0%, #0d2242 100%); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 25px; text-align: center; margin-bottom: 25px; box-shadow: 0 10px 25px rgba(0,0,0,0.3); position: relative; overflow: hidden; }
.balance-title { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.balance-amount { font-size: 36px; font-weight: 700; color: var(--accent); margin: 10px 0 20px 0; }
.balance-actions { display: flex; gap: 10px; justify-content: center; }
.btn-mini { padding: 10px 20px; border-radius: 30px; font-size: 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: 0.2s; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; width: 100%; }
.stat-card { background: var(--primary-light); padding: 15px; border-radius: 15px; display: flex; flex-direction: column; justify-content: center; }
.stat-icon { font-size: 24px; color: var(--accent); margin-bottom: 8px; }
.stat-value { font-size: 16px; font-weight: 600; color: #fff; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.text-success { color: #00c853 !important; }
.text-danger { color: #ff3d00 !important; }
.text-accent { color: var(--accent) !important; }
.ulp-card { background: linear-gradient(45deg, #1c345c, #2a4a7f); padding: 20px; border-radius: 15px; margin-bottom: 25px; border: 1px solid var(--accent); }
.ulp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.ulp-limit { font-size: 10px; background: rgba(0,0,0,0.3); padding: 5px 10px; border-radius: 20px; }
.section-title { font-size: 14px; font-weight: 600; margin-bottom: 15px; display: block; }
.ref-box { background: rgba(22, 43, 77, 0.5); padding: 15px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; border: 1px dashed var(--text-muted); }
.ref-link { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.ref-actions i { font-size: 22px; margin-left: 15px; cursor: pointer; color: var(--accent); }
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: 70px; background: #0a1a33; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); z-index: 1000; padding-bottom: 5px; }
.nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-muted); font-size: 10px; gap: 5px; }
.nav-item i { font-size: 24px; margin-bottom: 2px; }
.nav-item.active { color: var(--accent); }