/* SHA TIN GROUP - Dark Theme Dashboard Styles */

.dashboard-layout {
    display: flex; min-height: 100vh; background: var(--black);
}

.sidebar {
    width: 260px; background: var(--dark); border-right: 1px solid var(--border-gold);
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px; border-bottom: 1px solid var(--border-gold);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-header img { width: 40px; height: 40px; border-radius: 50%; }
.sidebar-header .sidebar-brand { font-family: var(--font-heading); color: var(--gold); font-size: 1rem; letter-spacing: 1px; }

.sidebar-nav { padding: 15px 0; }
.sidebar-nav .nav-section { padding: 10px 20px 5px; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 12px; padding: 12px 20px;
    color: var(--text-secondary); font-size: 0.85rem; transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--gold); background: rgba(212,175,55,0.05);
    border-left-color: var(--gold);
}
.sidebar-nav a i { width: 20px; text-align: center; }

.dashboard-main {
    flex: 1; margin-left: 260px; padding: 20px 30px;
    min-height: 100vh;
}

.dashboard-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; padding-bottom: 20px;
    border-bottom: 1px solid var(--border-gold);
}
.dashboard-header h1 { font-size: 1.8rem; color: var(--gold); }
.dashboard-header .user-info { display: flex; align-items: center; gap: 15px; }
.dashboard-header .user-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid var(--gold); object-fit: cover; cursor: pointer;
}

/* WIDGETS */
.widget-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px; margin-bottom: 30px;
}
.widget {
    background: var(--dark-card); border: 1px solid var(--border-gold);
    border-radius: 4px; padding: 25px; position: relative; overflow: hidden;
}
.widget::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-gold);
}
.widget .widget-value {
    font-family: var(--font-heading); font-size: 2.2rem; color: var(--gold);
    font-weight: 700; margin: 10px 0 5px;
}
.widget .widget-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.widget .widget-icon { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; color: rgba(212,175,55,0.2); }

/* PROGRESS BAR */
.progress-bar {
    height: 8px; background: var(--dark-light); border-radius: 4px; overflow: hidden;
    margin: 10px 0;
}
.progress-bar .progress-fill {
    height: 100%; background: var(--gradient-gold); border-radius: 4px;
    transition: width 0.5s ease;
}

/* REGISTRATION STAGES */
.stage-progress {
    display: flex; justify-content: space-between; margin-bottom: 40px;
    position: relative;
}
.stage-progress::before {
    content: ''; position: absolute; top: 20px; left: 0; right: 0;
    height: 2px; background: var(--dark-light); z-index: 0;
}
.stage-step {
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 1; flex: 1;
}
.stage-step .step-circle {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--dark-light); border: 2px solid var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; color: var(--text-muted);
    transition: var(--transition);
}
.stage-step.completed .step-circle { background: var(--gold); border-color: var(--gold); color: var(--black); }
.stage-step.active .step-circle { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 15px rgba(212,175,55,0.4); }
.stage-step .step-label { margin-top: 8px; font-size: 0.7rem; color: var(--white); text-align: center; max-width: 100px; font-weight: 500; }
.stage-step.active .step-label, .stage-step.completed .step-label { color: var(--gold-light); }

.form-group label {
    display: block;
    color: var(--white);
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 500;
}

/* MESSAGING */
.chat-container { display: flex; height: calc(100vh - 200px); border: 1px solid var(--border-gold); border-radius: 4px; }
.chat-sidebar { width: 300px; border-right: 1px solid var(--border-gold); overflow-y: auto; }
.chat-main { flex: 1; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; }
.chat-input { display: flex; padding: 15px; border-top: 1px solid var(--border-gold); gap: 10px; }
.chat-input input { flex: 1; }
.message-bubble {
    max-width: 70%; padding: 12px 16px; border-radius: 8px;
    margin-bottom: 10px; font-size: 0.9rem;
}
.message-bubble.sent { background: rgba(212,175,55,0.15); color: var(--text-primary); margin-left: auto; border: 1px solid var(--border-gold); }
.message-bubble.received { background: var(--dark-light); color: var(--text-secondary); }

/* PROFILE PHOTO UPLOAD */
.profile-upload {
    width: 120px; height: 120px; border-radius: 50%;
    border: 3px dashed var(--gold); display: flex; align-items: center;
    justify-content: center; cursor: pointer; overflow: hidden;
    position: relative; transition: var(--transition);
}
.profile-upload:hover { border-color: var(--gold-light); box-shadow: var(--shadow-gold); }
.profile-upload img { width: 100%; height: 100%; object-fit: cover; }
.profile-upload .upload-hint {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: var(--gold); text-align: center; padding: 10px;
    opacity: 0; transition: var(--transition);
}
.profile-upload:hover .upload-hint { opacity: 1; }

/* DOCUMENT UPLOAD */
.doc-upload-zone {
    border: 2px dashed var(--border-gold); border-radius: 4px;
    padding: 40px; text-align: center; cursor: pointer;
    transition: var(--transition); background: rgba(212,175,55,0.02);
}
.doc-upload-zone:hover { border-color: var(--gold); background: rgba(212,175,55,0.05); }
.doc-upload-zone i { font-size: 2rem; color: var(--gold); margin-bottom: 10px; }

/* TIMELINE */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border-gold); }
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item::before {
    content: ''; position: absolute; left: -24px; top: 5px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--gold); border: 2px solid var(--dark);
}
.timeline-item .timeline-date { font-size: 0.75rem; color: var(--text-muted); }
.timeline-item .timeline-text { color: var(--text-secondary); font-size: 0.9rem; margin-top: 3px; }

/* COMMISSION CALCULATOR */
.calculator-card { background: var(--dark-card); border: 1px solid var(--border-gold); border-radius: 4px; padding: 30px; }
.calculator-result {
    text-align: center; padding: 30px; margin-top: 20px;
    background: rgba(212,175,55,0.05); border: 1px solid var(--border-gold); border-radius: 4px;
}
.calculator-result .result-amount { font-family: var(--font-heading); font-size: 3rem; color: var(--gold); }

/* TABS */
.tabs { display: flex; border-bottom: 1px solid var(--border-gold); margin-bottom: 25px; }
.tab {
    padding: 12px 24px; color: var(--text-muted); cursor: pointer;
    border-bottom: 2px solid transparent; transition: var(--transition);
    font-size: 0.85rem; font-weight: 500;
}
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* MODAL */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    display: none; align-items: center; justify-content: center; z-index: 9999;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--dark); border: 1px solid var(--gold); border-radius: 4px;
    max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 30px;
}
.modal h2 { color: var(--gold); margin-bottom: 20px; }

/* NOTIFICATION BELL */
.notification-badge {
    position: relative;
}
.notification-badge .badge-count {
    position: absolute; top: -5px; right: -5px;
    background: #dc3545; color: white; font-size: 0.65rem;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .dashboard-main { margin-left: 0; }
    .widget-grid { grid-template-columns: 1fr 1fr; }
}
