/* ===== DARK GREEN THEME ===== */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #34d399;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #064e3b;
    --dark: #022c22;
    --text: #d1fae5;
    --text-muted: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header-logo {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.2));
}

.header-branding {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0.75rem;
    text-align: left;
    margin-right: auto;
}

/* Mobile - even smaller */
@media (max-width: 768px) {
    .header-logo {
        width: 40px;
        height: 40px;
    }
    
    .header-branding {
        gap: 0.5rem;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #047857 100%);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
}

/* LANDING PAGE ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sweepAway {
    0% { 
        transform: translateX(0);
        opacity: 1;
    }
    100% { 
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(5deg); }
}

.container {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.container.visible {
    opacity: 1;
}

/* LANDING PAGE STYLES */
#landingPage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #047857 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.landing-content {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.enhanced-logo {
    width: 600px;
    height: 360px;
    filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.8)) 
            drop-shadow(0 0 50px rgba(16, 185, 129, 0.5))
            contrast(1.1)
            brightness(1.1);
    animation: float 3s ease-in-out infinite;
    border-radius: 12px;
    transform-style: preserve-3d;
}

.landing-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #d1fae5;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.8),
                0 0 40px rgba(16, 185, 129, 0.4),
                0 0 60px rgba(16, 185, 129, 0.2);
    margin-bottom: 1rem;
}

.landing-subtitle {
    font-size: 1.4rem;
    color: #a7f3d0;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.app-header {
    background: rgba(6, 78, 59, 0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    text-align: center;
    color: var(--text);
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* NAVIGATION - FIXED POSITIONING */
.app-navigation {
    background: rgba(6, 78, 59, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(16, 185, 129, 0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.input-section, .results-section {
    background: rgba(6, 78, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 2rem;
}

.bureau-form {
    background: rgba(4, 120, 87, 0.6);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.bureau-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

/* BUTTON STYLES - UPDATED TO MATCH GREEN THEME */
.analyze-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    font-weight: 600;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.6);
}

/* SWEEP BUTTON - UPDATED TO MATCH GREEN THEME */
.cta-container {
    text-align: center;
    margin: 2rem 0;
}

.sweep-cta-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sweep-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* SWEEP OVERLAY - UPDATED TO MATCH GREEN THEME */
.sweep-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    z-index: 10000;
    transition: left 0.8s ease-in-out;
}

.sweep-active {
    left: 0;
}

.phase, .action-item, .issues, .recommendations {
    background: rgba(4, 120, 87, 0.6);
    border-left: 4px solid var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.score-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-group input, .form-group select, .text-input {
    background: rgba(6, 78, 59, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--text);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.disclaimer {
    background: rgba(6, 78, 59, 0.8);
    color: var(--text);
    border-left: 4px solid var(--warning);
}

/* Subscription Enhancements */
.usage-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin: 1rem 0;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.plan-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.plan-card li:last-child {
    border-bottom: none;
}

.export-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Personal Information and FCRA Grid Styles */
.personal-info-grid, .fcra-issues-grid {
    display: grid;
    gap: 1.5rem;
    margin: 1rem 0;
}

.info-pair, .fcra-item {
    background: rgba(4, 120, 87, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-pair:hover, .fcra-item:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.info-pair label, .fcra-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 1rem;
}

.comparison-fields {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
}

.info-incorrect, .info-correct, .fcra-details {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    background: rgba(6, 78, 59, 0.6);
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.info-incorrect:focus, .info-correct:focus, .fcra-details:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.info-incorrect {
    border-left: 4px solid rgba(239, 68, 68, 0.6);
}

.info-correct {
    border-left: 4px solid rgba(16, 185, 129, 0.6);
}

.fcra-details {
    border-left: 4px solid rgba(245, 158, 11, 0.6);
}

textarea.fcra-details {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.full-width {
    grid-column: 1 / -1;
}

.educational-note {
    background: rgba(5, 150, 105, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ffffff;
}

.legal-notice {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #ffffff;
}

.educational-disclaimer {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    color: #ffffff;
}

/* Account Management Styles */
.account-input {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 0.5rem;
    align-items: end;
    margin-bottom: 1rem;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(4, 120, 87, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    animation: slideIn 0.3s ease-out;
}

.account-info {
    flex: 1;
}

.account-details {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.remove-account-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
}

.remove-account-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.no-accounts {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
}

/* Pricing Plans */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.plan-card {
    background: rgba(4, 120, 87, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.plan-card.featured {
    border-color: var(--primary);
    background: rgba(4, 120, 87, 0.8);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Results Section */
.actions-list, .templates-list {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.action-item {
    background: rgba(4, 120, 87, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-section {
    margin: 2rem 0;
}

.plan-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Legal Notice Styling */
.legal-notice {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.educational-disclaimer {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.legal-content {
    background: rgba(6, 78, 59, 0.4);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-content li {
    margin: 0.5rem 0;
}

/* Footer */
footer .disclaimer a {
    color: #ffffff;
    text-decoration: underline;
}

footer .disclaimer a:hover {
    color: #10b981;
}

/* ANIMATIONS */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px rgba(16, 185, 129, 0.8); }
    100% { text-shadow: 0 0 30px rgba(16, 185, 129, 1), 0 0 40px rgba(16, 185, 129, 0.6); }
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 44, 34, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.spinner {
    border: 4px solid rgba(16, 185, 129, 0.3);
    border-left: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Template Interactive Styles */
.template-item.interactive {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(4, 120, 87, 0.4);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
}

.template-item.interactive:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.template-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.template-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-actions {
    display: flex;
    gap: 0.5rem;
}

.template-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.preview-btn {
    background: rgba(218, 224, 235, 0.2);
    color: #3b82f6;
}

.download-btn {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary);
}

.template-btn:hover {
    transform: translateY(-1px);
}

.action-item.interactive {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-checkbox {
    font-size: 1.2rem;
}

.action-item.interactive:hover .action-checkbox {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .input-section, .results-section {
        padding: 1.5rem;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .account-input {
        grid-template-columns: 1fr;
    }
    
    .comparison-fields {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .personal-info-grid, .fcra-issues-grid {
        gap: 1rem;
    }
    
    .info-pair, .fcra-item {
        padding: 1rem;
    }
    
    .export-options {
        flex-direction: column;
    }
    
    .analyze-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .template-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .template-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .input-section, .results-section {
        padding: 1rem;
    }
    
    .account-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .remove-account-btn {
        width: 100%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

/* Form Element Focus States */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Button States */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

button:disabled:hover {
    transform: none !important;
}

/* Selection Styles */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: var(--text);
}

::-moz-selection {
    background: rgba(16, 185, 129, 0.3);
    color: var(--text);
}