:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Glass Container */
.container.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

header {
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Identity Footer (Discrete) */
.identity-footer {
    text-align: center;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    color: var(--text-dim);
}

/* Screens */
.screen {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.icon-container {
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.drop-zone h2 {
    margin-bottom: 0.5rem;
}

.drop-zone p {
    color: var(--text-dim);
}

/* Link Box */
.link-box {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.link-box input {
    background: transparent;
    border: none;
    color: var(--text-light);
    flex-grow: 1;
    outline: none;
    font-family: monospace;
}

.link-box button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.link-box button:hover {
    background: var(--primary-hover);
}

/* Loader */
.loader-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.status-text {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* File Info */
.file-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: left;
    min-width: 0;
    /* Important for flex child truncation */
}

/* File Name Truncation */
.file-details {
    min-width: 0;
    /* Important for flex child truncation */
    flex-grow: 1;
}

.file-details h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.file-icon {
    font-size: 2rem;
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 1.5rem 0 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.1s linear;
}

/* Footer & Legal */
footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.disclaimer {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer strong {
    color: #ef4444;
    /* Red for emphasis on "No stored" */
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.legal-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: var(--primary);
}

/* Privacy Page Content */
.container.text-content {
    max-width: 800px;
    text-align: left;
    max-height: 90vh;
    overflow-y: auto;
}

/* Custom Scrollbar for text content */
.container.text-content::-webkit-scrollbar {
    width: 8px;
}

.container.text-content::-webkit-scrollbar-track {
    background: transparent;
}

.container.text-content::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

.container.text-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.text-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.text-content section {
    margin-bottom: 2rem;
}

.text-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.text-content p,
.text-content li {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.text-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.highlight-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.highlight-box strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.primary-btn.small {
    display: inline-block;
    width: auto;
    padding: 0.75rem 1.5rem;
    text-align: center;
    text-decoration: none;
    margin-top: 1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
}

.toast.error {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.toast.success {
    border-left: 4px solid #22c55e;
    background: rgba(34, 197, 94, 0.2);
}

.toast.info {
    border-left: 4px solid #3b82f6;
    background: rgba(59, 130, 246, 0.2);
}

.toast.warning {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}