:root {
    --bg-color: #f3f6fb;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #2d3748;
    --text-muted: #718096;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
    --border-color: rgba(226, 232, 240, 0.8);
    --dropzone-bg: #f8fafc;
    --dropzone-border: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
    --border-radius-sm: 8px;
}

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

[v-cloak] { display: none; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-color);
    background-image: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.05) 0%, rgba(0, 0, 0, 0) 40%),
                      radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, rgba(0, 0, 0, 0) 40%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 100%);
}

.header-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    background: rgba(0,0,0,0.05);
}

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

.w-full { width: 100%; }
.mt-4 { margin-top: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.text-success { color: var(--success); }
.text-xl { font-size: 1.25rem; }
.font-medium { font-weight: 500; }
.shrink-0 { flex-shrink: 0; }

.app-main {
    padding: 2.5rem 2rem;
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--dropzone-border);
    border-radius: var(--border-radius);
    background-color: var(--dropzone-bg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.dropzone:hover {
    border-color: var(--primary);
    background-color: rgba(79, 70, 229, 0.02);
}
.dropzone-active {
    border-color: var(--primary);
    background-color: rgba(79, 70, 229, 0.05);
    transform: scale(1.02);
}
.dropzone-content { pointer-events: none; }
.drop-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}
.dropzone h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.dropzone p { color: var(--text-muted); font-size: 0.95rem; }
.file-input { display: none; }

/* Progress */
.upload-progress-container {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Lists */
.recent-uploads-section, .files-list-section {
    margin-top: 2.5rem;
}
.section-title, .files-list-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}
.files-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.file-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.recent-success-item {
    border-left: 4px solid var(--success);
}
.recent-success-item .file-info {
    flex: 1;
}
.short-link-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
}
.short-link-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    background: #f8fafc;
    min-width: 0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}
.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e7ff;
    color: var(--primary);
    border-radius: 8px;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.file-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}
.file-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.file-actions {
    display: flex;
    gap: 0.5rem;
}
.action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-decoration: none;
}
.link-btn { background-color: var(--success); }
.link-btn:hover { background-color: #059669; }
.delete-btn { background-color: var(--danger); }
.delete-btn:hover { background-color: var(--danger-hover); }

/* Auth States */
.empty-state {
    margin-top: 1rem;
    text-align: center;
    padding: 3rem;
    background: rgba(255,255,255,0.5);
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.auth-required-message {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #e0e7ff;
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius-sm);
    color: var(--primary-hover);
    font-weight: 500;
    display: flex;
    align-items: center;
}
.auth-required-message i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.2s ease;
}
.modal-content {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h2 {
    font-size: 1.25rem;
    color: var(--text-main);
}
.close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
}
.close-btn:hover { color: var(--danger); }
.modal-body {
    padding: 1.5rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    animation: slideUp 0.3s ease forwards;
}
.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-md);
}
.toast.success { background-color: var(--success); }
.toast.error { background-color: var(--danger); }

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

@media (max-width: 640px) {
    .app-main { padding: 1.5rem 1rem; }
    .file-name { max-width: 100px; }
    .file-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .short-link-container { max-width: 100%; }
    .app-header { flex-direction: column; gap: 1rem; text-align: center; }
}
