:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --success: #001616;
    --danger: #f72585;
    --warning: #f8961e;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #000;
}

a {
    text-decoration: none;
    color: var(--primary);
}

/* Layout */
.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-card {
    flex: 1;
    max-width: 500px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.auth-illustration {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.auth-illustration img {
    max-width: 300px;
    margin-bottom: 2rem;
}

.auth-illustration h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

/* Formulaires */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group label {
    position: absolute;
    left: 15px;
    color: var(--gray);
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: yellow;
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

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

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

/* Alertes */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
}

/* Footer */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

.forgot-password {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
}

.profile i {
    font-size: 3rem;
    color: var(--primary);
}

.profile h3 {
    margin-top: 0.5rem;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav li {
    margin-bottom: 0.5rem;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: var(--dark);
    transition: var(--transition);
}

.sidebar nav a:hover {
    background-color: var(--light-gray);
}

.sidebar nav a.active {
    background-color: var(--primary);
    color: white;
}

.main-content {
    flex: 1;
    padding: 2rem;
    background-color: #f8f9fa;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
}

.upload-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-mode {
    background: #e9ecef;
    color: #495057;
    border: none;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-mode:hover:not(.active) {
    background: #dee2e6;
}

.upload-area {
    border: 2px dashed var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.upload-area.highlight {
    border-color: var(--primary);
    background-color: rgba(67, 97, 238, 0.1);
}

.btn-upload {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.upload-actions {
    margin-top: 1.5rem;
    text-align: center;
}

#progressContainer {
    margin-top: 1rem;
    display: none;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

progress {
    width: 100%;
    height: 10px;
    border-radius: 5px;
}

/* File Manager */
.file-manager {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.file-list {
    margin-top: 2rem;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

th {
    background-color: var(--light);
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-gray);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Alertes flottantes */
.alert-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.alert-floating.alert-success {
    background-color: var(--success);
    color: white;
}

.alert-floating.alert-error {
    background-color: var(--danger);
    color: white;
}

.alert-floating.fade-out {
    animation: fadeOut 0.3s ease-in;
}

/* Animations */
@keyframes slideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-card {
        max-width: 100%;
    }
    
    .auth-illustration {
        display: none;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .header-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

.settings-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.settings-form input {
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    transition: var(--transition);
}

.settings-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.settings-form button {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.settings-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
}

