@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #704fe6;
    --primary-hover: #5a3ec2;
    --primary-light: #f0ecfc;
    --primary-bg: #f9f8ff;
    --accent-color: #ffd25d;
    --dark-slate: #100f1f;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    
    /* SaaS Alert Colors */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
.navbar-custom {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Premium Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(112, 79, 230, 0.2);
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -1px rgba(112, 79, 230, 0.3);
}

.btn-secondary-custom {
    background-color: var(--bg-white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-container {
    background-color: var(--bg-white);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-container::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background-color: var(--primary-light);
    opacity: 0.4;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark-slate);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Feature Cards */
.feature-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    height: 56px;
    width: 56px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--dark-slate);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Wizard Form */
.wizard-box {
    background-color: var(--bg-white);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 40px auto;
    max-width: 900px;
}

.wizard-header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 30px;
    text-align: center;
}

.wizard-title {
    font-weight: 700;
    margin: 0;
    font-size: 24px;
}

.wizard-progress-bar-container {
    background-color: #eaebfd;
    height: 6px;
    width: 100%;
}

.wizard-progress-bar-fill {
    background-color: var(--accent-color);
    height: 100%;
    width: 0%;
    transition: width 0.4s ease;
}

.wizard-body {
    padding: 40px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

.form-label {
    font-weight: 600;
    color: var(--dark-slate);
    margin-bottom: 8px;
}

.form-control-custom {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

/* Radio Cards (Multi-choice options) */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.option-card-wrapper {
    position: relative;
}

.option-card-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.option-card i {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.option-card-input:checked + .option-card {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.option-card-input:checked + .option-card i {
    color: var(--primary-color);
}

.option-card:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-bg);
}

/* Report Dashboard */
.dashboard-title-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-slate);
    margin-top: 8px;
}

/* Loss Calculator Panel */
.loss-calculator-panel {
    background-color: #fee2e2; /* light red */
    border: 2px solid var(--danger-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.loss-title {
    color: var(--danger-color);
    font-weight: 800;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loss-value-banner {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #fca5a5;
    text-align: center;
    margin-bottom: 20px;
}

.loss-value-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--danger-color);
}

.loss-breakdown-item {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 5px solid var(--danger-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.loss-breakdown-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark-slate);
}

.loss-breakdown-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Category Scores */
.category-progress-container {
    margin-bottom: 20px;
}

.category-progress-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.category-progress-bar {
    height: 10px;
    border-radius: 5px;
    background-color: var(--border-color);
    overflow: hidden;
}

.category-progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.bg-excellent { background-color: var(--success-color); }
.bg-good { background-color: #34d399; }
.bg-average { background-color: var(--warning-color); }
.bg-poor { background-color: var(--danger-color); }

/* Score Gauge Widget */
.score-widget-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.score-circle-svg {
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: var(--primary-light);
    stroke-width: 12;
}

.score-circle-fill {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-in-out;
}

.score-center-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-center-num {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.score-center-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Admin Dashboard Table */
.admin-table {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.admin-table th {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
    padding: 15px;
    font-size: 14px;
}

.admin-table td {
    padding: 15px;
    vertical-align: middle;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Footer Section */
.footer-slate {
    background-color: var(--dark-slate);
    color: #e4e4e4;
    padding: 50px 0 30px;
    margin-top: auto;
    font-size: 14px;
}

.footer-slate a {
    color: #e4e4e4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-slate a:hover {
    color: var(--accent-color);
}

.footer-divider {
    border-top: 1px solid #232233;
    margin: 30px 0 20px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero-title {
        font-size: 30px;
    }
    
    .wizard-body {
        padding: 20px;
    }
    
    .option-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Futuristic / Glassmorphic additions */
.glass-panel {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(112, 79, 230, 0.15);
    box-shadow: 0 8px 32px 0 rgba(112, 79, 230, 0.08);
}
.glow-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}
.glow-card:hover {
    box-shadow: 0 0 20px rgba(112, 79, 230, 0.25);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.urgency-badge {
    background-color: var(--danger-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}
/* Live ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--primary-light);
    border-top: 1px solid rgba(112, 79, 230, 0.1);
    border-bottom: 1px solid rgba(112, 79, 230, 0.1);
    padding: 10px 0;
}
.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 35s linear infinite;
}
.ticker-item {
    display: inline-block;
    padding: 0 30px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.pulse-glow {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    animation: pulse-glow 1.5s infinite;
}
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}
/* Mobile floating button */
@media (max-width: 767.98px) {
    .mobile-float-cta {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        z-index: 1000;
        box-shadow: 0 8px 24px rgba(112, 79, 230, 0.35);
    }
    .hero-container {
        padding: 40px 0;
    }
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.95; }
    100% { transform: scale(1); opacity: 1; }
}
.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.animate-blink {
    animation: blink 1.2s infinite;
}