/* ==========================================================
   Light Mode Theme Overrides - SocialPulse
   File: public/css/light-theme.css
   ========================================================== */

/* 1. Global Page Backgrounds and Grids */
body.login-body,
body.register-body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: #0f172a !important;
}

.grid-bg {
    background-image: linear-gradient(rgba(0, 0, 0, .02) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .02) 1px, transparent 1px) !important;
    background-size: 60px 60px !important;
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, .02), transparent 70%);
}

.orb {
    filter: blur(100px) !important;
    opacity: 0.4 !important;
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.orb1 { background: #c084fc !important; }
.orb2 { background: #818cf8 !important; }
.orb3 { background: #fda4af !important; }

/* 2. Authentication Container Cards */
.register-card-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
}

/* 3. Showcase Side Panels */
.showcase-panel {
    background: linear-gradient(135deg, #f5f3ff 0%, #e0e7ff 100%) !important;
    border-right: 1px solid #e2e8f0 !important;
}
.showcase-dark-overlay {
    background: transparent !important;
}
.showcase-grid-pattern {
    opacity: 0.05 !important;
}
.showcase-title {
    color: #1e1b4b !important;
}
.plans-section-title {
    background: linear-gradient(135deg, #0f172a 0%, #4f46e5 50%, #7c3aed 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}
.showcase-title span {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
.showcase-desc {
    color: #475569 !important;
}
.brand-icon-box {
    background: linear-gradient(135deg, #7c3aed, #db2777) !important;
    border: 1px solid rgba(124, 58, 237, 0.2) !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2) !important;
}
.brand-icon-svg {
    stroke: #ffffff !important;
}
.brand-name {
    color: #1e1b4b !important;
}
.brand-subtext {
    color: var(--platform-color) !important;
}

/* 4. Form Columns & Controls */
.form-headline {
    color: #0f172a !important;
}
.form-subheadline {
    color: #475569 !important;
}
.section-label {
    color: #475569 !important;
}
.form-input-control {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
.form-input-control:focus {
    border-color: var(--platform-color) !important;
    box-shadow: 0 0 0 4px rgba(var(--platform-color-rgb), 0.1) !important;
}
.input-icon-group svg {
    color: #64748b !important;
}
.terms-label {
    color: #475569 !important;
}
.back-link {
    color: #64748b !important;
}
.back-link:hover {
    color: var(--platform-color) !important;
}
.login-redirect-info span {
    color: #64748b !important;
}
.submit-growth-btn {
    background: var(--platform-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px var(--platform-glow) !important;
}
.submit-growth-btn:hover {
    opacity: 0.95 !important;
}
.form-footer-section span {
    color: #94a3b8 !important;
}
.divider-text {
    background: #ffffff !important;
    color: #64748b !important;
}
.divider-line {
    background-color: #e2e8f0 !important;
}
.oauth-provider-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
.oauth-provider-btn:hover {
    background: #f8fafc !important;
}

/* 5. User Registration Multi-step Details */
.role-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
.role-card:hover {
    border-color: var(--platform-color) !important;
}
.role-card.selected {
    background: rgba(var(--platform-color-rgb), 0.05) !important;
    border-color: var(--platform-color) !important;
}
.role-title {
    color: #0f172a !important;
}
.role-desc {
    color: #475569 !important;
}
.step-dot {
    background: #cbd5e1 !important;
}
.step-dot.active {
    background: var(--platform-color) !important;
}
.step-dot.completed {
    background: #10b981 !important;
}
.nav-prev-btn {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}
.nav-prev-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
.file-upload-zone {
    background: #f8fafc !important;
    border: 2px dashed #cbd5e1 !important;
    color: #475569 !important;
}
.file-upload-zone:hover {
    border-color: var(--platform-color) !important;
}
.upload-desc {
    color: #64748b !important;
}
.social-input-row span {
    color: #475569 !important;
}

/* 6. Pulse Rate Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.pulse-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
}

.pulse-heart {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--platform-color, #7c3aed) 0%, #db2777 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(var(--platform-color-rgb, 124, 58, 237), 0.25);
    z-index: 2;
    animation: heartPulse 1.2s infinite cubic-bezier(0.215, 0.610, 0.355, 1);
}

.pulse-wave {
    position: absolute;
    top: 35px; /* Half of heart height */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--platform-color, #7c3aed);
    opacity: 0;
    z-index: 1;
    animation: wavePulse 1.2s infinite cubic-bezier(0.215, 0.610, 0.355, 1);
}

.pulse-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--platform-color, #7c3aed), #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textFade 1.2s infinite ease-in-out;
}

@keyframes heartPulse {
    0% { transform: scale(0.95); }
    15% { transform: scale(1.15); }
    30% { transform: scale(0.95); }
    45% { transform: scale(1.15); }
    70% { transform: scale(1); }
    100% { transform: scale(0.95); }
}

@keyframes wavePulse {
    0% { width: 70px; height: 70px; opacity: 0.8; }
    100% { width: 160px; height: 160px; opacity: 0; }
}

@keyframes textFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.showcase-feature-circle {
    background: rgba(124, 58, 237, 0.1) !important;
    border: 1px solid rgba(124, 58, 237, 0.18) !important;
}
.showcase-feature-check {
    color: #7c3aed !important;
}
.showcase-feature-text {
    color: #475569 !important;
}

/* Light Theme Checkbox High Contrast Overrides */
.custom-checkbox {
    border: 1.5px solid #cbd5e1 !important;
    background-color: #ffffff !important;
}
.custom-checkbox:hover {
    border-color: #94a3b8 !important;
}
.custom-checkbox:checked {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
}
.custom-checkbox:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 0.35rem !important;
    top: 0.15rem !important;
    width: 0.25rem !important;
    height: 0.5rem !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* Sidebar Collapse CSS */
body.sidebar-collapsed #adminSidebar { width: 5rem !important; }
body.sidebar-collapsed #adminSidebar .brand-text,
body.sidebar-collapsed #adminSidebar .user-text-info,
body.sidebar-collapsed #adminSidebar nav span { opacity: 0; width: 0; overflow: hidden; display: none; }
body.sidebar-collapsed #adminSidebar form span { display: none; }
body.sidebar-collapsed #adminSidebar .p-6 { padding-left: 1rem; padding-right: 1rem; justify-content: center; }
body.sidebar-collapsed #adminSidebar nav a { justify-content: center; padding-left: 0.75rem; padding-right: 0.75rem; }
body.sidebar-collapsed #adminSidebar nav a svg { margin: 0; }
body.sidebar-collapsed #adminSidebar .w-10 { margin: 0 auto; }
body.sidebar-collapsed #adminSidebar form button { padding: 0.5rem; }
body.sidebar-collapsed #adminSidebar .flex.items-center.justify-between { justify-content: center !important; }
body.sidebar-collapsed .animate-ping.absolute,
body.sidebar-collapsed .relative.inline-flex.rounded-full { position: absolute; top: 5px; right: 5px; }

