/* SG COMPASS Score - Bubblegum Pink Theme */

:root {
    --primary-pink: #FFC4DD;
    --light-pink: #FFEBF3;
    --soft-pink: #FFF6FA;
    --accent-pink: #FF9FCC;
    --dark-pink: #FF80BB;
    --white: #FFFFFF;
    --dark-text: #4A4A4A;
    --light-text: #7A7A7A;
    --success-green: #A8E6CF;
    --warning-peach: #FFD3B6;
    --error-red: #FFB3BA;
    --border-color: #FFE0EC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--white) 100%);
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: var(--white);
    border-bottom: 3px solid var(--light-pink);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(255, 179, 217, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 24px;
    color: var(--accent-pink);
}

.logo-emoji {
    font-size: 32px;
}

.credit-badge {
    background: var(--light-pink);
    color: var(--accent-pink);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* Main Content */
main {
    padding: 60px 0;
}

/* Panels */
.panel {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    text-align: center;
    margin-bottom: 48px;
}

.panel-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent-pink);
    margin-bottom: 16px;
}

.panel-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 16px;
}

.subtitle {
    font-size: 20px;
    color: var(--light-text);
    font-weight: 400;
}

/* Upload Zone */
.upload-zone {
    background: var(--white);
    border: 3px dashed var(--border-color);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.upload-zone:hover {
    border-color: var(--accent-pink);
    background: var(--soft-pink);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 133, 192, 0.15);
}

.upload-zone.dragover {
    border-color: var(--accent-pink);
    background: var(--light-pink);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.upload-zone h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.upload-zone p {
    color: var(--light-text);
    font-size: 16px;
}

.file-types {
    font-size: 14px;
    color: var(--light-text);
    margin-top: 12px;
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

.feature-icon {
    background: var(--success-green);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-pink);
    border-top: 4px solid var(--accent-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 40px;
}

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

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: 12px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.loading-step.active {
    opacity: 1;
    background: var(--light-pink);
    transform: scale(1.05);
}

.step-icon {
    font-size: 24px;
}

/* Extracted Info */
.extracted-info {
    background: var(--light-pink);
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
    text-align: left;
}

.extracted-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.extracted-item:last-child {
    border-bottom: none;
}

.extracted-icon {
    font-size: 20px;
}

.extracted-label {
    font-weight: 600;
    color: var(--dark-text);
    min-width: 100px;
}

.extracted-value {
    color: var(--accent-pink);
    font-weight: 700;
}

/* Form */
.form {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(255, 179, 217, 0.1);
}

.form h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    background: var(--soft-pink);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-pink);
    background: var(--white);
}

small {
    display: block;
    color: var(--light-text);
    font-size: 13px;
    margin-top: 6px;
}

.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-pink);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    width: 100%;
    margin-top: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-pink), var(--primary-pink));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255, 133, 192, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 133, 192, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--accent-pink);
    border: 2px solid var(--accent-pink);
}

.btn-secondary:hover {
    background: var(--light-pink);
}

/* Results */
.results-container {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(255, 179, 217, 0.1);
}

.score-display {
    text-align: center;
    margin-bottom: 40px;
}

.score-number {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-pink), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.score-bar {
    width: 100%;
    height: 24px;
    background: var(--light-pink);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-pink), var(--primary-pink));
    transition: width 1s ease-out;
    border-radius: 12px;
}

.eligibility-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    margin: 24px 0;
}

.eligibility-status.eligible {
    background: var(--success-green);
    color: #2D5F4B;
}

.eligibility-status.not-eligible {
    background: var(--error-red);
    color: #8B3A3A;
}

.breakdown {
    margin: 32px 0;
}

.breakdown h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    font-weight: 600;
    color: var(--dark-text);
}

.breakdown-score {
    font-weight: 700;
    color: var(--accent-pink);
    font-size: 18px;
}

.recommendations {
    margin-top: 32px;
}

.recommendations h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 16px;
}

.recommendation-item {
    background: var(--light-pink);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.recommendation-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.actions {
    margin-top: 32px;
}

/* Footer */
footer {
    background: var(--white);
    border-top: 3px solid var(--light-pink);
    padding: 32px 0;
    text-align: center;
    margin-top: 80px;
}

footer p {
    color: var(--light-text);
    font-size: 14px;
    margin: 8px 0;
}

footer a {
    color: var(--accent-pink);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.footer-note {
    font-size: 12px;
    color: var(--light-text);
    max-width: 600px;
    margin: 12px auto 0;
}

/* Responsive */
@media (max-width: 768px) {
    .panel-header h1 {
        font-size: 32px;
    }

    .panel-header h2 {
        font-size: 24px;
    }

    .upload-zone {
        padding: 40px 24px;
    }

    .form {
        padding: 24px;
    }

    .results-container {
        padding: 24px;
    }

    .score-number {
        font-size: 56px;
    }

    .features {
        gap: 16px;
    }
}
