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

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f9fafb;
    --white: #ffffff;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
}

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

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* Consent Modal */
.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.consent-modal {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.consent-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.consent-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.consent-body {
    padding: 30px;
}

/* Document List */
.document-list {
    margin: 20px 0;
}

.document-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary);
}

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

.doc-info h3 {
    margin-bottom: 5px;
}

.doc-info a {
    color: var(--primary);
    text-decoration: none;
}

.doc-info a:hover {
    text-decoration: underline;
}

/* Key Points */
.key-points {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary);
}

.key-points ul {
    list-style: none;
    margin-top: 10px;
}

.key-points li {
    margin-bottom: 8px;
    color: var(--dark);
}

/* Consent Checkbox */
.consent-checkbox-container {
    margin: 25px 0;
    padding: 20px;
    background: #fff3e0;
    border-radius: 8px;
    border: 2px solid var(--warning);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
}

.consent-checkbox {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--warning);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

.consent-checkbox:checked + .checkmark {
    background: var(--warning);
    border-color: var(--warning);
}

.consent-checkbox:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

.checkbox-text {
    font-size: 15px;
    line-height: 1.5;
}

.checkbox-text a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

.required-star {
    color: var(--danger);
    margin-left: 3px;
}

/* Consent Actions */
.consent-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.consent-note {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.error-message {
    color: var(--danger);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Features */
.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--light);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    opacity: 0.6;
    font-size: 14px;
}

/* Tool Page */
.tool-header {
    background: var(--dark);
    padding: 20px 0;
}

.tool-main {
    padding: 60px 0;
    background: var(--light);
    min-height: calc(100vh - 200px);
}

.upload-area {
    background: white;
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.upload-icon {
    color: var(--gray);
    margin-bottom: 20px;
}

.hint {
    color: var(--gray);
    font-size: 13px;
    margin-top: 15px;
}

.settings-panel {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .nav-links {
        display: none;
    }
    
    .consent-actions {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}