/* --- 1. Global Styles & Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #FFFFFF;
    --bg-light: #F8F9FA;
    --primary: #28a745;
    --secondary: #17A2B8;
    --text-light: #212529;
    --text-muted: #6C757D;
    --border-color: #DEE2E6;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    padding-top: 80px;
}

.section-title {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* --- 2. Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
}

/* --- 3. Buttons --- */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
    background-color: #218838;
    border-color: #1e7e34;
    color: white;
}

.btn-secondary {
    background-color: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #E9ECEF;
    border-color: var(--primary);
}

/* --- 4. Hero & Feature Sections --- */
.hero-section {
    padding: 6rem 0;
    background: radial-gradient(circle, #F8F9FA 0%, var(--bg-dark) 70%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.features-section, .how-it-works-section {
    padding: 4rem 0;
}

.feature-card, .step-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover, .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.1);
}

.feature-icon, .step-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.step-card {
    position: relative;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
}


/* --- 5. Main Analyzer Tool --- */
.analyzer-section {
    padding: 4rem 0;
}

.tool-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.form-control {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-area:hover {
    border-color: var(--primary);
    background-color: #F0F0F0;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* --- 6. Modals --- */
.modal-content {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    color: var(--text-light);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.btn-close {
    filter: invert(1);
}

.modal-body pre {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 0.5rem;
    padding: 1rem;
    white-space: pre-wrap;
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background-color: transparent;
    border-bottom: 2px solid var(--primary);
}

.text-primary { color: var(--primary) !important; }
.badge.bg-success { background-color: var(--primary) !important; color: var(--bg-dark) !important; }
.badge.bg-danger { background-color: #ff4d4d !important; }
.upgrade-box { background-color: var(--bg-dark); border: 1px solid var(--border-color); }

/* --- 7. Footer --- */
footer {
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}