:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at top right, #1e1b4b, #0f172a);
    overflow-x: hidden;
}

.nav-bar {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.nav-bar span {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logout-btn {
    color: var(--text-muted);
    transition: color 0.2s;
    font-size: 1.2rem;
}

.logout-btn:hover {
    color: #ef4444;
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    max-width: 1200px;
    align-items: start;
}

@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

.container {
    width: 100%;
    padding: 2rem;
    z-index: 1;
}

.upload-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease;
}

.upload-card:hover {
    transform: translateY(-5px);
}

h1 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.title-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.title-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 3rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.drop-zone:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.drop-zone.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--primary);
}

.file-input {
    display: none;
}

.progress-container {
    display: none;
    margin-top: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.status-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

#status-text {
    font-weight: 500;
    color: var(--text-main);
}

.success-message {
    display: none;
    color: var(--success);
    margin-top: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -100px;
    right: -100px;
}

.blob-2 {
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

.file-list-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    overflow-y: auto;
}

.file-list-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.file-info {
    text-align: left;
}

.file-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.file-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.file-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.copy-btn,
.delete-btn {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    color: white;
}

.copy-btn {
    background: var(--primary);
}

.copy-btn:hover {
    background: var(--primary-hover);
}

.copy-btn.copied {
    background: var(--success);
}

.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.delete-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.edit-btn {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover,
.save-btn {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.inline-edit-input {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: white;
    padding: 0.35rem 0.75rem;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}