:root {
    --primary-color: #0052cc; /* Reliable Blue */
    --primary-hover: #003d99;
    --accent-color: #ffd700; /* Goldish for premium feel */
    --bg-color: #f0f2f5;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #333333;
    --text-muted: #666666;
    --error-color: #d32f2f;
    --warning-color: #ed6c02;
    --success-color: #2e7d32;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

header {
    margin-bottom: 40px;
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

h1 {
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid rgba(255,255,255,0.8);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary-color);
    background: #ebf8ff;
    transform: translateY(-2px);
}

.upload-zone p {
    margin: 10px 0;
    color: var(--text-muted);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,82,204,0.2);
    display: inline-block;
    text-decoration: none;
    margin-top: 10px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,82,204,0.3);
}

/* Disclaimer & Checkbox */
.disclaimer-group {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-top: 12px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-wrapper input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Modal / Lightbox Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px; /* Better constraint */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: slideIn 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* Result Page */
.result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .result-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.preview-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.preview-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.badge-warning { background: #fff3e0; color: #e65100; }
.badge-error { background: #ffebee; color: #c62828; }
.badge-success { background: #e8f5e9; color: #2e7d32; }

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-warning {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

.alert-privacy {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    font-size: 0.9rem;
    margin-top: 30px;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Loading */
.loader {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SEO Content Section */
.seo-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    color: var(--text-main);
    line-height: 1.8;
}

.seo-content h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.seo-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.seo-content h3 {
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: var(--text-main);
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

/* Feature List (Benefits) */
.seo-feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .seo-feature-list {
        grid-template-columns: 1fr 1fr;
    }
}

.seo-feature-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
}

.seo-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.seo-feature-title {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Step List (Printing) */
.seo-step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.seo-step-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
}

.seo-step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,82,204,0.3);
}

.seo-step-item strong {
    color: var(--text-main);
}

/* Disclaimer Box */
.seo-disclaimer-box {
    margin-top: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    border-left: 6px solid var(--warning-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.seo-disclaimer-title {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--warning-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
    width: 100%;
}
