* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-box h1 {
    color: #1f2937;
    margin-bottom: 30px;
    text-align: center;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"] {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button {
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover {
    background: #2563eb;
}

.error {
    background: #fee;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #dc2626;
}

/* Drive */
.drive {
    min-height: 100vh;
}

.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #1f2937;
    font-size: 24px;
}

.user-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.user-info span {
    color: #6b7280;
}

.btn-logout {
    background: #ef4444;
    padding: 8px 16px;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
}

.btn-logout:hover {
    background: #dc2626;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.upload-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.upload-section h2 {
    color: #1f2937;
    font-size: 16px;
    margin-bottom: 15px;
}

.upload-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.upload-form input[type="file"],
.upload-form select,
.upload-form button {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
}

.upload-form input[type="file"] {
    flex: 1;
    min-width: 200px;
}

.upload-form select {
    background: white;
    cursor: pointer;
    border: 1px solid #d1d5db;
}

.upload-form button {
    background: #10b981;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.upload-form button:hover {
    background: #059669;
}

.files-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.files-section h2 {
    color: #1f2937;
    font-size: 16px;
    margin-bottom: 15px;
}

.empty {
    color: #9ca3af;
    text-align: center;
    padding: 40px 20px;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 10px;
}

.file-info {
    flex: 1;
}

.file-name {
    color: #1f2937;
    font-weight: bold;
    margin-bottom: 4px;
}

.file-meta {
    color: #9ca3af;
    font-size: 12px;
}

.file-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-download,
.btn-delete {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-download {
    background: #3b82f6;
    color: white;
}

.btn-download:hover {
    background: #2563eb;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
}

.file-actions select {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

.file-actions form {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Barre de progression */
.progress-bar-container {
    width: 100%;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
