/* Auth & Dashboard specific styles for Revanta Growth Media */

/* --- Auth Split Layout --- */
.auth-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-gray);
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-blue), #0a255c);
    color: var(--white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left .brand-logo {
    position: absolute;
    top: 40px;
    left: 60px;
}

.auth-left h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.auth-left p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 450px;
}

.auth-right {
    flex: 1.2;
    background: var(--white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-container h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.auth-container p.subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* --- Multi-step Form --- */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--bg-gray);
    z-index: 1;
    transform: translateY(-50%);
}

.step-dot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-gray);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    position: relative;
    transition: var(--transition);
}

.step-dot.active {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 0 0 5px rgba(10, 37, 92, 0.2);
}

.step-dot.completed {
    background: #25d366; /* Green for completed */
    color: var(--white);
}

.form-step {
    display: none;
    animation: fadeInCenter 0.5s ease;
}

.form-step.active {
    display: block;
}

/* --- Form Controls --- */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #fafafa;
}

.form-control:focus {
    border-color: var(--primary-blue);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(10, 37, 92, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 42px;
    cursor: pointer;
    color: #666;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.custom-checkbox input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* --- Dashboard Layout --- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-gray);
}

.sidebar {
    width: 280px;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    padding: 5px 20px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.dashboard-header {
    background: var(--white);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--secondary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.dashboard-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.dash-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.dash-card h3 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Grid for Stats --- */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(10, 37, 92, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-info h4 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-info h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

/* --- Admin Table --- */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--bg-gray);
    padding: 15px;
    text-align: left;
    color: var(--primary-blue);
    font-weight: 600;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-new { background: #e0f2fe; color: #0284c7; }
.status-contacted { background: #fef08a; color: #854d0e; }
.status-interested { background: #dcfce7; color: #166534; }
.status-converted { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #b91c1c; }

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    color: #444;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.btn-icon:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-icon.delete:hover {
    background: var(--secondary-red);
}

/* --- Verification Alert --- */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.dash-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .auth-layout { flex-direction: column; }
    .auth-left { 
        padding: 60px 20px 40px; 
        text-align: center; 
        align-items: center; 
        min-height: auto;
    }
    .auth-left .brand-logo { position: static; margin-bottom: 30px; }
    .auth-left h1 { font-size: 2.2rem; }
    .auth-left p { font-size: 1rem; }
    .auth-right { padding: 40px 20px; }
    
    .dashboard-layout { flex-direction: column; }
    
    /* Mobile Sidebar Toggle Logic */
    .sidebar { 
        width: 100%; 
        height: auto; 
        position: sticky; 
        top: 0; 
        z-index: 100;
        padding: 10px 0;
    }
    .sidebar-header { 
        padding: 10px 20px; 
        border: none; 
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .sidebar-menu { 
        display: none; 
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary-blue);
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 10px 0;
    }
    
    .sidebar.menu-open .sidebar-menu {
        display: block;
    }

    .dashboard-header {
        padding: 15px 20px;
    }
    
    .dashboard-body {
        padding: 20px;
    }

    .dash-stats-grid { 
        grid-template-columns: 1fr; 
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .auth-left h1 { font-size: 1.8rem; }
    .auth-container h2 { font-size: 1.6rem; }
    
    .step-indicator {
        margin-bottom: 30px;
    }
    
    .step-dot {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .auth-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .dash-main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .checkbox-group { 
        grid-template-columns: 1fr; 
    }

    .dash-card {
        padding: 20px;
    }

    .dashboard-header h2 {
        font-size: 1.2rem;
    }

    .user-profile span {
        display: none; /* Hide name on very small screens */
    }
}

/* Utilities for Mobile Toggle */
.mobile-menu-toggle {
    display: none;
}

