/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2c5282;
    --accent-color: #2b6cb0;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --highlight-color: #fef3c7;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Selection highlighting */
::selection {
    background-color: var(--highlight-color);
    color: var(--text-color);
}

::-moz-selection {
    background-color: var(--highlight-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background-color: var(--bg-light);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.privacy-notice {
    background-color: white;
    border: 2px solid var(--success-color);
    border-radius: 8px;
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Tool and Guide Grids */
.tool-grid,
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card,
.guide-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover,
.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tool-card h3,
.guide-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tool-card p,
.guide-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

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

/* Tool Pages */
.tool-page {
    min-height: 100vh;
    background-color: var(--bg-light);
}

.tool-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.tool-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.upload-section {
    background-color: white;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.upload-section.dragover {
    border-color: var(--accent-color);
    background-color: #f0f8ff;
}

.file-input-wrapper {
    display: inline-block;
    margin-top: 1rem;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-input-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.file-input-label:hover {
    background-color: #2980b9;
}

.results-section {
    display: none;
    margin-top: 2rem;
}

.results-section.visible {
    display: block;
}

.result-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.result-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.severity-critical {
    border-left: 4px solid var(--danger-color);
}

.severity-warning {
    border-left: 4px solid var(--warning-color);
}

.severity-info {
    border-left: 4px solid var(--accent-color);
}

.severity-success {
    border-left: 4px solid var(--success-color);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.badge-critical {
    background-color: var(--danger-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-info {
    background-color: var(--accent-color);
    color: white;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Guide Pages */
.guide-page {
    background-color: white;
}

.guide-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.guide-content h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.guide-content h2 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.guide-content h3 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.guide-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.guide-content ul,
.guide-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.guide-content li {
    margin-bottom: 0.5rem;
}

.guide-content code {
    background-color: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.guide-content pre {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.guide-content pre code {
    background-color: transparent;
    padding: 0;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.info-box {
    background-color: #d1ecf1;
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.success-box {
    background-color: #d4edda;
    border-left: 4px solid var(--success-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Interactive Checklists */
.interactive-checklist {
    list-style-type: none;
    padding-left: 0;
}

.interactive-checklist li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 0.5rem;
    border-radius: 4px;
}

.interactive-checklist li:hover {
    background-color: var(--bg-light);
}

.interactive-checklist input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.interactive-checklist label {
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.interactive-checklist li.checked label {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Privacy Badge */
.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.privacy-badge i {
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .tool-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 1rem;
    }

    /* Guide page mobile styles */
    .guide-content {
        padding: 1rem;
    }

    .guide-content h1 {
        font-size: 1.75rem;
    }

    .guide-content h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .guide-content h3 {
        font-size: 1.25rem;
        margin-top: 1rem;
    }

    .guide-content pre {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    .guide-content ul,
    .guide-content ol {
        padding-left: 1.25rem;
    }

    .warning-box,
    .info-box,
    .success-box {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .nav-menu {
        font-size: 0.9rem;
    }
}
