/* Design Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-dark: #020617;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: #334155;
    --border-dark: #475569;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: background-color var(--transition), color var(--transition);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1.5rem;
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    font-size: 4rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
    border: 1px solid var(--border);
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section,
.how-it-works {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   STEPS
   ============================================ */

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.step {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    border: 1px solid var(--border);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--bg-card);
    margin: 4rem 0;
    border-radius: var(--radius-xl);
}

.cta-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-cta {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 2rem 2rem;
}

[data-theme="dark"] .main-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

[data-theme="dark"] .footer-section h4 {
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-muted);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

[data-theme="dark"] .footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-muted);
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.legal-header {
    text-align: center;
    padding: 3rem 0;
}

.legal-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.legal-section {
    background: var(--bg-card);
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.legal-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.legal-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.legal-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
}

.legal-warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
    color: #92400e;
}

[data-theme="dark"] .legal-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.legal-notice {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

[data-theme="dark"] .legal-notice {
    background: rgba(245, 158, 11, 0.2);
    color: var(--text-primary);
}

.legal-notice a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.legal-notice a:hover {
    text-decoration: underline;
}

.legal-footer {
    text-align: center;
    padding: 2rem 0;
}

.btn-back {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-back:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.section {
    background: var(--bg-card);
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.name-section,
.password-section,
.expiry-section {
    margin-bottom: 2rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.hint-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ============================================
   UPLOAD BOX
   ============================================ */

.upload-box {
    margin-bottom: 2rem;
}

#file-input {
    display: none;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    border: 3px dashed var(--border-dark);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.file-label:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.file-label span {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
}

.size-info {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.5rem !important;
}

/* ============================================
   FILE LIST
   ============================================ */

#file-list {
    margin-top: 1.5rem;
}

.file-item {
    background: var(--bg-secondary);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.file-item:hover {
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.file-item button {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.file-item button:hover {
    background: #dc2626;
}

/* ============================================
   TERMS CHECKBOX SECTION
   ============================================ */

.terms-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.terms-section.checked {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .terms-section.checked {
    background: rgba(16, 185, 129, 0.1);
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.terms-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 28px;
    width: 28px;
    z-index: 1;
}

.terms-checkmark {
    position: relative;
    display: inline-block;
    min-width: 28px;
    width: 28px;
    height: 28px;
    background-color: var(--bg-tertiary);
    border: 3px solid var(--border-dark);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.terms-label:hover .terms-checkmark {
    border-color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.terms-checkbox:checked ~ .terms-checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
    animation: checkboxPop 0.3s ease;
}

@keyframes checkboxPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.terms-checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 3px;
    width: 7px;
    height: 14px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.terms-checkbox:checked ~ .terms-checkmark::after {
    display: block;
    animation: checkmark 0.3s ease 0.1s both;
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 0;
    }
    50% {
        height: 14px;
        width: 0;
        opacity: 1;
    }
    100% {
        height: 14px;
        width: 7px;
        opacity: 1;
    }
}

.terms-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    flex: 1;
}

.terms-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.terms-text a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.terms-hint {
    font-size: 0.875rem;
    color: var(--danger);
    text-align: center;
    margin-top: 0.75rem;
    display: block;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

.terms-hint.hidden {
    display: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 1.25rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    background: var(--text-muted);
}

.btn-primary:disabled:hover {
    transform: none !important;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border);
    margin-top: 1rem;
}

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

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-container {
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 3rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.progress-text {
    text-align: center;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   RESULT & INFO BOXES
   ============================================ */

.result-box {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 2px solid var(--success);
    border-radius: var(--radius-lg);
}

.result-box h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--success);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.link-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.link-container input {
    flex: 1;
}

.link-container button {
    width: auto;
    padding: 1rem 2rem;
    white-space: nowrap;
}

.info-text {
    text-align: center;
    color: var(--text-muted);
    margin-top: 1rem;
}

.upload-stats {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-left: 4px solid var(--success);
    border-radius: var(--radius-md);
}

.upload-stats p {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */

.password-prompt {
    margin-bottom: 2rem;
}

.file-info {
    background: var(--bg-secondary);
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
}

.file-info p {
    margin: 0.75rem 0;
    color: var(--text-primary);
}

.file-info h3 {
    color: var(--primary);
}

.individual-files {
    margin-top: 2rem;
}

.individual-file-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.individual-file-item:hover {
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.individual-file-item button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.individual-file-item button:hover {
    background: var(--primary-dark);
}

/* ============================================
   ERROR MESSAGE
   ============================================ */

.error-message {
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger);
    border-radius: var(--radius-md);
    color: var(--danger);
    margin-top: 1rem;
}

/* ============================================
   UTILITY
   ============================================ */

.hidden {
    display: none !important;
}
/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .step-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 2rem;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .individual-file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .individual-file-item button {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-item button {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .floating-card {
        font-size: 2.5rem;
        padding: 1rem;
    }
    
    .terms-checkmark {
        min-width: 24px;
        width: 24px;
        height: 24px;
    }
    
    .terms-text {
        font-size: 0.85rem;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .main-nav,
    .theme-toggle,
    .hero-visual,
    .floating-card,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .section {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   FOCUS STYLES
   ============================================ */

*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.terms-checkbox:focus ~ .terms-checkmark {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* ============================================
   SELECTION STYLES
   ============================================ */

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

::-moz-selection {
    background-color: var(--primary);
    color: white;
}

/* ============================================
   ADDITIONAL ANIMATIONS
   ============================================ */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

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

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   TOOLTIPS
   ============================================ */

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
}

[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ============================================
   BADGE STYLES
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

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

/* ============================================
   CUSTOM SCROLLBAR FOR SPECIFIC ELEMENTS
   ============================================ */

.file-list::-webkit-scrollbar,
.individual-files::-webkit-scrollbar {
    width: 8px;
}

.file-list::-webkit-scrollbar-track,
.individual-files::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

.file-list::-webkit-scrollbar-thumb,
.individual-files::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* ============================================
   SMOOTH TRANSITIONS FOR THEME SWITCH
   ============================================ */

body,
.main-nav,
.section,
.feature-card,
.step,
.legal-section,
.file-item,
.individual-file-item,
input,
select,
button {
    transition: background-color var(--transition),
                color var(--transition),
                border-color var(--transition),
                box-shadow var(--transition);
}

/* ============================================
   ERLAUBTE DATEITYPEN SEKTION
   ============================================ */

.allowed-files-section {
    margin: 2rem 0;
}

.file-types-details {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

.file-types-summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    user-select: none;
    list-style: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.file-types-summary::-webkit-details-marker {
    display: none;
}

.file-types-summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.file-types-details[open] .file-types-summary::before {
    transform: rotate(90deg);
}

.file-types-summary:hover {
    background: var(--hover-color);
}

.file-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}

.file-type-category {
    background: var(--bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: var(--transition);
}

.file-type-category:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-type-category h4 {
    margin: 0 0 0.75rem 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-type-category p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.file-types-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--warning-bg, #fff3cd);
    border: 1px solid var(--warning-border, #ffc107);
    border-radius: var(--radius-sm);
    color: var(--warning-text, #856404);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Dark Mode Anpassungen */
:root[data-theme="dark"] .file-types-note {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-types-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .file-types-summary {
        font-size: 1rem;
    }

    .file-type-category h4 {
        font-size: 0.95rem;
    }

    .file-type-category p {
        font-size: 0.8rem;
    }
}

/* ============================================
   IMPRESSUM EINKLAPPBARE BEREICHE
   ============================================ */

.legal-details {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0;
    margin: 1.5rem 0;
    transition: var(--transition);
}

.legal-details:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legal-summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
    user-select: none;
    list-style: none;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-summary::-webkit-details-marker {
    display: none;
}

.legal-summary::before {
    content: '▶';
    display: inline-block;
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.legal-details[open] .legal-summary::before {
    transform: rotate(90deg);
}

.legal-summary:hover {
    background: var(--hover-color);
}

.legal-details .legal-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    animation: slideDown 0.3s ease-out;
}

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

/* Dark Mode Anpassungen für Impressum */
:root[data-theme="dark"] .legal-details {
    background: rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .legal-details:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Responsive Design für Impressum */
@media (max-width: 768px) {
    .legal-summary {
        font-size: 1.2rem;
        padding: 1rem;
    }

    .legal-details .legal-content {
        padding: 0 1rem 1rem 1rem;
    }
}

/* ============================================
   END OF STYLESHEET
   ============================================ */