:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --primary: #3b82f6;
    --text: #f1f5f9;
    --border: #334155;
}

body {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    overflow-x: hidden;
}

/* LOADER */
.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
}
.spinner {
    width: 50px; height: 50px;
    border: 5px solid rgba(255,255,255,0.1);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* PANTALLAS */
.screen-container {
    width: 100%;
    min-height: 100vh;
}

/* LOGIN */
#login-screen {
    display: flex; 
    justify-content: center; 
    align-items: center;
    background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
}

.glass-panel {
    background: rgba(30, 41, 59, 0.8);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    width: 90%; max-width: 400px;
}

.logo-big { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.subtitle { color: #94a3b8; margin-bottom: 2rem; }

.btn-google {
    background: white; color: #333; border: none;
    padding: 12px 20px; border-radius: 8px; font-weight: 600;
    cursor: pointer; width: 100%; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform 0.2s;
}
.btn-google:hover { transform: translateY(-2px); }

/* CREDITOS */
.credits-login { margin-top: 2rem; font-size: 0.8rem; color: #64748b; }
.dev-name { color: var(--primary); font-weight: bold; }

.dashboard-footer {
    text-align: center; padding: 2rem;
    color: #64748b; font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

/* DASHBOARD */
.navbar {
    background: var(--card-bg); padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
}
.nav-brand { font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.badge { font-size: 0.7rem; background: var(--primary); color: white; padding: 2px 6px; border-radius: 4px; margin-left: 5px; }

.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user img { width: 35px; height: 35px; border-radius: 50%; border: 2px solid var(--border); }
#btn-logout { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 1.2rem; }

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

/* UPLOAD */
.upload-card { background: var(--card-bg); padding: 2rem; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 2rem; }
.drop-zone { border: 2px dashed var(--border); border-radius: 8px; padding: 2rem; text-align: center; cursor: pointer; transition: 0.3s; }
.drop-zone:hover { border-color: var(--primary); background: rgba(59, 130, 246, 0.05); }
.icon-cloud { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }
.btn-select { background: var(--primary); color: white; border: none; padding: 8px 16px; border-radius: 6px; margin-top: 1rem; cursor: pointer; }

/* PROGRESS */
.upload-status { margin-top: 1.5rem; }
.status-header { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; }
.progress-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: #10b981; width: 0%; transition: width 0.3s; }

/* FILES */
.file-list { list-style: none; padding: 0; }
.file-list li {
    background: var(--card-bg); border: 1px solid var(--border);
    margin-bottom: 10px; padding: 1rem; border-radius: 8px;
    display: flex; justify-content: space-between; align-items: center;
}
.file-info { display: flex; align-items: center; gap: 15px; }
.file-icon { font-size: 1.5rem; color: #94a3b8; }
.file-details h4 { margin: 0; font-size: 0.95rem; }
.file-details span { font-size: 0.75rem; color: #94a3b8; }
.btn-download { color: #10b981; margin-right: 10px; text-decoration: none; }
.btn-delete { color: #ef4444; background: none; border: none; cursor: pointer; }