/* ========================================
   ESTILOS BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header h1 i {
    margin-right: 15px;
    color: #ffd700;
    animation: float 3s ease-in-out infinite;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   LOGIN OVERLAY - DISEÑO MODERNO
   ======================================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(20px);
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-header {
    margin-bottom: 40px;
}

.login-header h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2rem;
    font-weight: 600;
}

.login-header h2 i {
    color: #667eea;
    margin-right: 15px;
    font-size: 2.5rem;
}

.login-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    font-weight: 400;
}

/* ========================================
   FORMULARIOS
   ======================================== */
.auth-form {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e8f4fd;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #bdc3c7;
}

/* ========================================
   BOTONES
   ======================================== */
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn i {
    margin-right: 10px;
    font-size: 18px;
}

/* ========================================
   MENSAJES DE AUTENTICACIÓN
   ======================================== */
.auth-message {
    margin-top: 25px;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.auth-message.show {
    opacity: 1;
    transform: translateY(0);
}

.auth-message.success {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: 1px solid #00b894;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.auth-message.error {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
    border: 1px solid #e17055;
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}

/* ========================================
   INFORMACIÓN DE ADMINISTRADOR
   ======================================== */
.admin-info {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.admin-note {
    color: #495057;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.admin-note i {
    color: #667eea;
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
}

.admin-note strong {
    color: #2c3e50;
    font-size: 14px;
}

/* ========================================
   CONTENIDO PRINCIPAL
   ======================================== */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
}

/* ========================================
   SECCIÓN DE SUBIDA
   ======================================== */
.upload-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #f39c12;
}

.upload-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.upload-section h2 i {
    color: #f39c12;
    font-size: 2rem;
}

.upload-area {
    border: 3px dashed #bdc3c7;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.upload-area.dragover {
    border-color: #667eea;
    background: #e8f4fd;
    transform: scale(1.02);
}

.upload-options {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.upload-option {
    flex: 1;
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed #ddd;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 140px;
    color: #7f8c8d;
}

.file-input-label:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f3f0ff 0%, #e8e4ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.file-input-label.folder-upload:hover {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.file-input-label i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.file-input-label:hover i {
    color: #667eea;
    transform: scale(1.1);
}

.file-input-label.folder-upload:hover i {
    color: #28a745;
}

.file-input-label span {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.upload-hint {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
}

/* ========================================
   BOTONES DE SUBIDA
   ======================================== */
.upload-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.upload-buttons .btn {
    flex: 1;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.upload-buttons .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.upload-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.upload-buttons .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.upload-buttons .folder-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.upload-buttons .folder-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================================
   BARRA DE PROGRESO
   ======================================== */
.progress-bar {
    background: #e8f4fd;
    border-radius: 10px;
    height: 8px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.cancel-upload-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-upload-btn:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
    transform: translateY(-50%) scale(1.05);
}

.progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* ========================================
   MENSAJES DE ESTADO
   ======================================== */
.status-message {
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-message.success {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.status-message.error {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}

.status-message.info {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
}

/* ========================================
   SECCIÓN DE ARCHIVOS
   ======================================== */
.files-section {
    margin-top: 40px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e74c3c;
}

.files-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.files-section h2 i {
    color: #e74c3c;
    font-size: 2rem;
}

.files-list {
    display: grid;
    gap: 20px;
}

.loading,
.no-files {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #bdc3c7;
}

/* ========================================
   ACCIONES MASIVAS
   ======================================== */
.bulk-actions {
    display: none;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.select-all-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.select-all-label {
    font-weight: 500;
    color: white;
    cursor: pointer;
    user-select: none;
}

.bulk-delete-btn {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
}

.bulk-delete-btn:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
}

.cancel-selection-btn {
    background: #6c757d !important;
    border-color: #6c757d !important;
}

.cancel-selection-btn:hover {
    background: #5a6268 !important;
    border-color: #545b62 !important;
}

/* ========================================
   TARJETAS DE ARCHIVOS
   ======================================== */
.file-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8f4fd;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    cursor: pointer;
}

/* Archivos con preview disponible */
.file-card.previewable {
    cursor: pointer;
    border-color: #667eea;
}

.file-card.previewable:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
    border-color: #4c63d2;
}

.preview-hint {
    color: #667eea;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

.preview-hint i {
    margin-right: 5px;
}

.file-checkbox-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.file-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-checkbox-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.file-checkbox:checked+.file-checkbox-label {
    background: #667eea;
}

.file-checkbox:checked+.file-checkbox-label::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.file-card:hover .file-checkbox {
    opacity: 1;
}

.file-card.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.file-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.file-info {
    flex: 1;
}

.file-name {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.file-name:hover {
    color: #667eea;
}

.file-details {
    display: flex;
    gap: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.btn-download,
.btn-delete,
.btn-preview {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-download {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
}

.btn-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 112, 85, 0.4);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ========================================
   BOTÓN DE LOGOUT
   ======================================== */
.btn-logout {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
    margin-left: 20px;
    white-space: nowrap;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 112, 85, 0.4);
}

/* ========================================
   BREADCRUMB NAVIGATION
   ======================================== */
.breadcrumb-container {
    margin-bottom: 20px;
    padding: 15px 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #9b59b6;
}

.navigation-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.back-btn {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: auto !important;
}

.back-btn:hover {
    background: #5a6268 !important;
    border-color: #545b62 !important;
    transform: translateX(-2px) !important;
}

.back-btn i {
    font-size: 12px !important;
}

.navigation-help {
    color: #6c757d;
    cursor: help;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.navigation-help:hover {
    background: #e9ecef;
    color: #495057;
    transform: scale(1.1);
}

.navigation-help i {
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    flex: 1;
}

.breadcrumb-item {
    color: #667eea;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    border: 1px solid transparent;
}

.breadcrumb-item:hover {
    background: #f0f2ff;
    color: #4c63d2;
    border-color: #667eea;
    transform: translateY(-1px);
}

.breadcrumb-item.current {
    background: #667eea;
    color: white;
    border-color: #4c63d2;
}

.breadcrumb-item.current:hover {
    background: #4c63d2;
    color: white;
}

.breadcrumb-separator {
    color: #6c757d;
    font-weight: bold;
}

/* ========================================
   SECCIÓN DE ACCIONES
   ======================================== */
.actions-section {
    margin-bottom: 20px;
    padding: 20px 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #00b894;
}

.actions-header h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.actions-header h2 i {
    color: #00b894;
}

.actions-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========================================
   TARJETAS DE CARPETAS
   ======================================== */
.folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* --- ADMIN DASHBOARD --- */
.btn-admin {
    background: #6200ea;
    color: white;
}

.btn-admin:hover {
    background: #4a00b0;
}

#adminModal .modal-content {
    background: #f8f9fa;
    max-width: 900px;
    border-radius: 15px;
}

.admin-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.admin-card h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #6200ea;
    padding-bottom: 10px;
}

/* ========================================
   PREMIUM ADMIN DASHBOARD REDESIGN
   ======================================== */

.admin-dashboard {
    max-width: 1100px !important;
    border-radius: 24px;
    background: #f8fafc;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.admin-dashboard .modal-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 25px 35px;
    border-bottom: none;
}

.admin-dashboard .modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-dashboard .modal-header h2 i {
    color: #818cf8;
}

.admin-dashboard .close-modal {
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-dashboard .close-modal:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

.admin-dashboard .modal-body {
    padding: 35px;
    background: #f1f5f9;
}

/* Admin Cards */
.admin-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.admin-card h3 {
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Stats Grid */
.disk-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 16px;
    text-align: left;
    transition: transform 0.2s;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
}

.stat-item.highlight {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

#adminDiskUnallocated {
    color: #10b981;
    font-size: 1.4rem;
    font-weight: 800;
}

#adminDiskReserved {
    color: #6366f1;
    font-size: 1.4rem;
    font-weight: 800;
}

#adminDiskTotal {
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 800;
}

/* User Creation Form */
.user-creation-form {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    padding: 20px;
    border-radius: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 15px;
    align-items: center;
}

.form-row input {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-row input:focus {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Table Design */
.users-table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

#usersTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#usersTable th {
    background: #f8fafc;
    padding: 15px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 2px solid #f1f5f9;
}

#usersTable td {
    padding: 18px 20px;
    color: #334155;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
}

#usersTable tr:hover td {
    background: #f8fafc;
}

/* Badges */
.role-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.role-admin {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.role-user {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.quota-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #475569;
}

.admin-dashboard .btn-primary {
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        max-height: 95vh;
    }
}

@media (max-width: 768px) {
    .folders-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .navigation-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .back-btn {
        align-self: flex-start;
        width: auto;
    }

    .breadcrumb {
        justify-content: flex-start;
    }

    .navigation-help {
        align-self: flex-end;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .folders-grid {
        gap: 10px;
    }
}

.folder-card {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffc107;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.folder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #e0a800;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.folder-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffc107 0%, #f39c12 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.folder-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.folder-info {
    flex: 1;
}

.folder-name {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.folder-details {
    display: flex;
    gap: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.folder-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
}

.btn-open {
    background: linear-gradient(135deg, #ffc107 0%, #f39c12 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    white-space: nowrap;
    min-width: 120px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* ========================================
   INFORMACIÓN DEL SISTEMA
   ======================================== */
.system-info-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.system-info-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-info-section h2 i {
    color: #667eea;
}

.system-info-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.system-info-section h2 i {
    color: #28a745;
    font-size: 1.8rem;
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.disk-usage {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.disk-bar {
    width: 100%;
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.disk-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.disk-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.disk-stats span {
    color: #333;
    font-weight: 600;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* ========================================
   TABLETS (768px - 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }

    .header h1 {
        font-size: 2.8rem;
    }

    .login-container {
        padding: 40px 30px;
        margin: 20px;
        max-width: 500px;
    }

    .main-content {
        padding: 30px;
    }

    .upload-options {
        flex-direction: column;
        gap: 15px;
    }

    .file-card {
        padding: 20px;
    }

    .file-details {
        flex-direction: column;
        gap: 8px;
    }

    .file-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-download,
    .btn-delete,
    .btn-preview {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ========================================
   MOBILE LARGE (481px - 768px)
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }

    .header p {
        font-size: 1rem;
    }

    .login-container {
        padding: 30px 25px;
        margin: 15px;
        border-radius: 20px;
        width: calc(100% - 30px);
    }

    .login-header h2 {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 20px;
        border-radius: 20px;
    }

    .upload-section h2,
    .files-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .upload-area {
        padding: 25px 15px;
        border-radius: 15px;
    }

    .file-input-label {
        height: 120px;
        padding: 20px 15px;
    }

    .file-input-label i {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .file-input-label span {
        font-size: 1rem;
    }

    .upload-hint {
        font-size: 0.75rem;
    }

    .upload-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .upload-buttons .btn {
        padding: 15px 20px;
        font-size: 14px;
    }

    .file-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
        position: relative;
    }

    .file-checkbox-container {
        position: absolute;
        top: 10px;
        left: 10px;
    }

    /* Estilos responsivos para carpetas */
    .folder-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
        margin-bottom: 15px;
    }

    .folder-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto;
    }

    .folder-info {
        width: 100%;
        text-align: center;
    }

    .folder-name {
        font-size: 1.1rem;
        margin-bottom: 8px;
        word-break: break-word;
        line-height: 1.3;
    }

    .folder-details {
        flex-direction: column;
        gap: 5px;
        align-items: center;
        font-size: 0.85rem;
    }

    .folder-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-open {
        padding: 10px 16px;
        font-size: 12px;
        flex: 1;
        min-width: 120px;
        max-width: 150px;
    }

    .file-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .file-name {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .file-details {
        flex-direction: column;
        gap: 5px;
        font-size: 0.85rem;
    }

    .file-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .btn-download,
    .btn-delete,
    .btn-preview {
        padding: 12px 18px;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
    }

    .btn {
        padding: 15px 25px;
        font-size: 14px;
    }

    .admin-info {
        margin: 20px 10px 0 10px;
        padding: 15px;
    }

    .admin-note {
        font-size: 12px;
    }

    .bulk-actions {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .breadcrumb {
        font-size: 13px;
    }

    .breadcrumb-item {
        padding: 4px 8px;
    }

    .actions-section {
        padding: 15px 20px;
    }

    .actions-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .system-info-section {
        padding: 20px;
    }

    .system-info-section h2 {
        font-size: 1.3rem;
    }

    /* Botón de logout responsivo */
    .btn-logout {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        padding: 15px 20px;
        font-size: 14px;
        text-align: center;
    }

    /* Header responsivo */
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header .btn-logout {
        align-self: center;
        width: auto;
        min-width: 200px;
    }
}

/* ========================================
   MOBILE SMALL (320px - 480px)
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .header p {
        font-size: 0.9rem;
    }

    .login-container {
        padding: 25px 20px;
        margin: 10px;
        border-radius: 15px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .form-group input {
        padding: 15px 18px;
        font-size: 16px;
        /* Previene zoom en iOS */
    }

    .btn {
        padding: 15px 20px;
        font-size: 14px;
        width: 100%;
    }

    /* Botón de logout para pantallas muy pequeñas */
    .btn-logout {
        padding: 12px 16px;
        font-size: 13px;
        min-width: 180px;
        margin: 10px auto;
        display: block;
    }

    .main-content {
        padding: 15px;
        border-radius: 15px;
    }

    .upload-section h2,
    .files-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .upload-area {
        padding: 20px 10px;
    }

    .file-input-label {
        height: 100px;
        padding: 15px 10px;
    }

    .file-input-label i {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .file-input-label span {
        font-size: 0.9rem;
    }

    .upload-hint {
        font-size: 0.7rem;
    }

    .file-card {
        padding: 15px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
        position: relative;
    }

    .file-checkbox-container {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 10;
    }

    .file-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin: 0 auto;
    }

    .file-info {
        width: 100%;
        text-align: center;
    }

    .file-name {
        font-size: 1rem;
        margin-bottom: 8px;
        word-break: break-word;
        line-height: 1.3;
    }

    .file-details {
        font-size: 0.8rem;
        gap: 3px;
        flex-direction: column;
        align-items: center;
    }

    .file-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-download,
    .btn-delete,
    .btn-preview {
        padding: 10px 16px;
        font-size: 12px;
        flex: 1;
        min-width: 100px;
        max-width: 120px;
    }

    /* Estilos responsivos para carpetas en pantallas pequeñas */
    .folder-card {
        padding: 15px;
        gap: 12px;
        margin-bottom: 10px;
    }

    .folder-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .folder-name {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .folder-details {
        font-size: 0.8rem;
        gap: 3px;
    }

    .btn-open {
        padding: 8px 14px;
        font-size: 11px;
        min-width: 100px;
        max-width: 120px;
    }

    .bulk-actions {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .btn-download,
    .btn-delete,
    .btn-preview {
        padding: 10px 15px;
        font-size: 12px;
        width: 100%;
    }

    .bulk-actions {
        padding: 12px;
        gap: 8px;
    }

    .select-all-label {
        font-size: 14px;
    }

    .bulk-delete-btn,
    .cancel-selection-btn {
        padding: 10px 15px;
        font-size: 13px;
        width: 100%;
    }

    .breadcrumb {
        font-size: 12px;
        gap: 5px;
    }

    .breadcrumb-item {
        padding: 3px 6px;
    }

    .actions-section {
        padding: 12px 15px;
    }

    .actions-header h2 {
        font-size: 16px;
    }

    .system-info-section {
        padding: 15px;
    }

    .system-info-section h2 {
        font-size: 1.2rem;
    }

    .disk-stats {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .status-message {
        padding: 12px 15px;
        font-size: 13px;
        margin: 15px 0;
    }

    .progress-bar {
        height: 6px;
        margin: 15px 0;
    }

    .cancel-upload-btn {
        padding: 3px 6px;
        font-size: 11px;
        right: 5px;
    }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .header h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .header p {
        font-size: 0.9rem;
    }

    .login-container {
        padding: 20px 30px;
        margin: 10px;
    }

    .main-content {
        padding: 15px 20px;
    }

    .upload-area {
        padding: 20px;
    }

    .file-card {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }

    .file-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .btn-download,
    .btn-delete,
    .btn-preview {
        width: auto;
        flex: none;
    }
}

/* ========================================
   HIGH DPI DISPLAYS
   ======================================== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .file-icon,
    .folder-icon {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    }

    .btn {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    }
}

/* ========================================
   DARK MODE SUPPORT (PREFERS-COLOR-SCHEME)
   ======================================== */
/* Dark mode deshabilitado por preferencia del usuario */
/*
@media (prefers-color-scheme: dark) {
    .main-content {
        background: rgba(30, 30, 30, 0.95);
        color: #e0e0e0;
    }
    
    .file-card {
        background: #2a2a2a;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .file-name {
        color: #e0e0e0;
    }
    
    .file-details {
        color: #b0b0b0;
    }
    
    .form-group input {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: #404040;
    }
    
    .form-group input:focus {
        background: #333;
        border-color: #667eea;
    }
    
    .upload-area {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .loading, .no-files {
        background: #2a2a2a;
        color: #b0b0b0;
        border-color: #404040;
    }
}
*/

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
.file-checkbox:focus,
input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Touch target improvements for mobile */
@media (max-width: 768px) {

    .btn,
    .file-checkbox,
    .breadcrumb-item {
        min-height: 44px;
        min-width: 44px;
    }

    .file-checkbox {
        min-height: 24px;
        min-width: 24px;
    }

    /* Mejorar botones de descarga en móviles */
    .btn-download {
        background: linear-gradient(135deg, #00b894 0%, #00cec9 100%) !important;
        color: white !important;
        border: none !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3) !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }

    .btn-download:hover,
    .btn-download:active {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4) !important;
        background: linear-gradient(135deg, #00a085 0%, #00b5a6 100%) !important;
    }

    .btn-download:focus {
        outline: 2px solid #00b894 !important;
        outline-offset: 2px !important;
    }

    /* Mejorar botones de preview en móviles */
    .btn-preview {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border: none !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }

    .btn-preview:hover,
    .btn-preview:active {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    }

    .btn-preview:focus {
        outline: 2px solid #667eea !important;
        outline-offset: 2px !important;
    }
}

/* ========================================
   MOBILE TOUCH IMPROVEMENTS
   ======================================== */
@media (max-width: 768px) {

    /* Mejorar respuesta táctil */
    .btn,
    .file-card,
    .file-input-label {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Prevenir zoom en inputs en iOS */
    input[type="email"],
    input[type="password"],
    input[type="text"] {
        font-size: 16px;
    }

    /* Mejorar scroll en móviles */
    .files-list {
        -webkit-overflow-scrolling: touch;
    }

    /* Optimizar animaciones para móviles */
    .file-card {
        will-change: transform;
    }

    /* Mejorar contraste en móviles */
    .file-name {
        font-weight: 700;
    }

    .file-details {
        font-weight: 500;
    }
}

/* ========================================
   SAFARI MOBILE SPECIFIC FIXES
   ======================================== */
@supports (-webkit-touch-callout: none) {
    .btn {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 15px;
    }

    input[type="file"] {
        -webkit-appearance: none;
        appearance: none;
    }
}

/* ========================================
   ANDROID CHROME SPECIFIC FIXES
   ======================================== */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .btn:active {
        transform: scale(0.98);
    }

    .file-card:active {
        transform: scale(0.99);
    }
}

/* ========================================
   ANIMACIONES ADICIONALES
   ======================================== */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.login-container:hover {
    animation: pulse 2s infinite;
}

/* ========================================
   ESTADOS ESPECIALES
   ======================================== */
.hidden {
    display: none !important;
}

/* ========================================
   SCROLLBAR PERSONALIZADA
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* ========================================
   SISTEMA DE PREVIEW
   ======================================== */
.preview-container {
    background: white;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e8f4fd;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-header h3 i {
    color: #ffd700;
}

.btn-close-preview {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.btn-close-preview:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) !important;
}

.preview-content {
    padding: 25px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.preview-video {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.preview-not-supported {
    color: #7f8c8d;
    text-align: center;
}

.preview-not-supported i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 15px;
    display: block;
}

.preview-not-supported p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.preview-not-supported .file-info {
    font-size: 0.9rem;
    color: #95a5a6;
    font-style: italic;
}

/* ========================================
   RESPONSIVE PREVIEW
   ======================================== */
@media (max-width: 768px) {
    .preview-container {
        margin: 15px 0;
        border-radius: 15px;
    }

    .preview-header {
        padding: 15px 20px;
    }

    .preview-header h3 {
        font-size: 1.1rem;
    }

    .preview-content {
        padding: 20px;
        min-height: 150px;
    }

    .preview-image,
    .preview-video {
        max-height: 300px;
    }

    .preview-not-supported i {
        font-size: 2.5rem;
    }

    .preview-not-supported p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .preview-container {
        margin: 10px 0;
        border-radius: 12px;
    }

    .preview-header {
        padding: 12px 15px;
    }

    .preview-header h3 {
        font-size: 1rem;
    }

    .preview-content {
        padding: 15px;
        min-height: 120px;
    }

    .preview-image,
    .preview-video {
        max-height: 250px;
    }

    .preview-not-supported i {
        font-size: 2rem;
    }

    .preview-not-supported p {
        font-size: 0.9rem;
    }
}

/* ========================================
   MOBILE TOUCH IMPROVEMENTS
   ======================================== */
@media (max-width: 768px) {

    /* Mejorar área táctil para botones */
    .btn,
    .btn-download,
    .btn-delete,
    .btn-preview,
    .btn-logout {
        min-height: 44px;
        /* Mínimo recomendado para iOS */
        touch-action: manipulation;
    }

    /* Mejorar área táctil para checkboxes */
    .file-checkbox,
    .file-checkbox-label {
        min-width: 44px;
        min-height: 44px;
    }

    /* Mejorar área táctil para nombres de archivo */
    .file-name {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
    }

    /* Mejorar área táctil para tarjetas */
    .file-card {
        min-height: 120px;
        touch-action: manipulation;
    }

    /* Mejorar área táctil para carpetas */
    .folder-card {
        min-height: 100px;
        touch-action: manipulation;
        cursor: pointer;
    }

    .folder-icon {
        min-width: 44px;
        min-height: 44px;
    }

    .btn-open {
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Mejorar scroll en móviles */
    .files-grid,
    .folders-grid {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* ========================================
   DESKTOP DOWNLOAD PROGRESS
   ======================================== */
#desktop-download-progress {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.desktop-progress-container {
    padding: 20px;
}

.desktop-progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.desktop-progress-header i {
    color: #667eea;
    font-size: 1.2rem;
}

.desktop-progress-title {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.desktop-progress-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.desktop-progress-close:hover {
    background: #f0f0f0;
    color: #666;
}

.desktop-progress-bar {
    background: #f0f0f0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.desktop-progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.desktop-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s infinite;
}

.desktop-progress-text {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* Responsive para la barra de progreso de desktop */
@media (max-width: 768px) {
    #desktop-download-progress {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

/* ========================================
   MOBILE DOWNLOAD POPUP
   ======================================== */
.mobile-popup-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 90%;
    width: 350px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.mobile-popup-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    animation: downloadPulse 2s infinite;
}

@keyframes downloadPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.mobile-popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-popup-body {
    padding: 25px 20px;
    text-align: center;
}

.mobile-popup-body p {
    margin: 10px 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.mobile-popup-body p strong {
    color: #333;
    font-weight: 600;
}

.mobile-download-progress {
    margin: 20px 0;
}

.mobile-progress-bar {
    background: #f0f0f0;
    border-radius: 25px;
    height: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    width: 0%;
    border-radius: 25px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.mobile-progress-text {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.mobile-popup-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.mobile-popup-footer .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mobile-popup-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.mobile-popup-footer .btn i {
    margin-right: 8px;
}

/* Responsive para el popup */
@media (max-width: 480px) {
    .mobile-popup-content {
        width: 95%;
        max-width: 320px;
    }

    .mobile-popup-header {
        padding: 20px 15px;
    }

    .mobile-popup-header i {
        font-size: 2rem;
    }

    .mobile-popup-header h3 {
        font-size: 1.2rem;
    }

    .mobile-popup-body {
        padding: 20px 15px;
    }

    .mobile-popup-body p {
        font-size: 0.95rem;
    }

    .mobile-popup-footer {
        padding: 15px;
    }

    .mobile-popup-footer .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* Animación de entrada para el popup */
#mobile-download-popup {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

}

/* Clase base para TODOS los Modales */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.82);
    /* Fondo semi-transparente oscuro */
    backdrop-filter: blur(12px);
    /* Efecto Glassmorphism más profundo */
    -webkit-backdrop-filter: blur(12px);
    display: none;
    /* Controlado por JS con display: flex */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* Un nivel más arriba */
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Modificación específica para el Admin Dashboard */
#adminModal .modal-content {
    max-width: 1200px;
    height: 85vh;
}

/* Modificación específica para el Previsualizador - TEMA OSCURO PREMIUM */
.preview-modal-content {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1000px !important;
}

.preview-modal-content .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
}

.preview-modal-content .modal-header h2 {
    color: #f8fafc;
    font-size: 1.2rem;
}

.preview-modal-content .close-modal {
    color: #94a3b8;
    transition: color 0.2s;
}

.preview-modal-content .close-modal:hover {
    color: #f8fafc;
}

.preview-body {
    padding: 0;
    background: #020617;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    position: relative;
    min-height: 50vh;
}

.preview-body img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    padding: 20px;
}

.preview-body video,
.preview-body audio {
    width: 100%;
    max-height: 70vh;
    outline: none;
}

.preview-body .text-preview {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 30px;
    background: #020617;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow: auto;
}

.preview-body iframe {
    width: 100%;
    height: 75vh;
    border: none;
    background: #ffffff;
}

.preview-body .no-preview {
    padding: 60px;
    text-align: center;
    color: #94a3b8;
}

.preview-body .no-preview i {
    font-size: 5rem;
    color: #334155;
    margin-bottom: 25px;
}

/* Mejoras en la tarjeta de archivo para indicar interactividad */
.file-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-card:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.file-icon {
    font-size: 2rem;
    color: #6366f1;
    transition: transform 0.2s;
}

.file-card:hover .file-icon {
    transform: scale(1.1);
}

.file-name {
    color: #1e293b;
    transition: color 0.2s;
}

.file-card:hover .file-name {
    color: #6366f1;
}


/* Previsualizador de archivos */
.preview-modal-content {
    max-width: 90vw !important;
    width: auto !important;
    min-width: 50vw;
    background: #0f172a !important;
    /* Tema oscuro para resaltar contenido */
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    max-height: 80vh;
    overflow: auto;
    padding: 20px;
    background: #020617;
    border-radius: 12px;
}

.preview-body img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.preview-body video {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
}

.preview-body .text-preview {
    width: 100%;
    background: #1e293b;
    padding: 20px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.6;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

.preview-body iframe {
    width: 100%;
    height: 75vh;
    border: none;
    background: white;
    border-radius: 8px;
}

.preview-body .no-preview {
    text-align: center;
    padding: 40px;
}

.preview-body .no-preview i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #475569;
}

.preview-body .no-preview p {
    font-size: 1.1rem;
    color: #94a3b8;
}

/* Hacer clicable el icono y nombre */
.file-icon,
.file-name {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.file-icon:hover {
    transform: scale(1.1);
}

.file-name:hover {
    color: #6366f1;
    text-decoration: underline;
}

/* ========================================
   PREMIUM ADMIN DASHBOARD STYLES
   ======================================== */
.premium-admin {
    background: #f8fafc !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.premium-admin .modal-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-badge {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.premium-admin .modal-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.premium-admin .modal-header p {
    margin: 4px 0 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

.premium-admin .close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-admin .close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.custom-scrollbar {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.admin-section {
    padding: 30px 40px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-section:last-child {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: #1e293b;
}

.section-title i {
    color: #4f46e5;
    font-size: 1.2rem;
}

.section-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.premium-stat-card {
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
}

.premium-stat-card:hover {
    transform: translateY(-5px);
}

.premium-stat-card.v-blue {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #1e40af;
}

.premium-stat-card.v-purple {
    background: #faf5ff;
    border-color: #f3e8ff;
    color: #6b21a8;
}

.premium-stat-card.v-dark {
    background: #f8fafc;
    border-color: #f1f5f9;
    color: #334155;
}

.premium-stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.v-blue .stat-icon {
    background: #dbeafe;
}

.v-purple .stat-icon {
    background: #f3e8ff;
}

.v-dark .stat-icon {
    background: #e2e8f0;
}

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.8;
}

.premium-form-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.input-field input,
.input-field select {
    padding: 12px 16px;
    border: 2.5px solid #f1f5f9;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s;
    background: #f8fafc;
}

.input-field input:focus,
.input-field select:focus {
    border-color: #4f46e5;
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.quota-group {
    display: flex;
    gap: 8px;
}

.quota-group input {
    flex: 1;
}

.quota-group select {
    width: 80px;
}

.btn-premium-add {
    width: 100%;
    background: #4f46e5 !important;
    color: white !important;
    padding: 16px !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    border: none !important;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2) !important;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-premium-add:hover {
    background: #4338ca !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.3) !important;
}

.premium-table-container {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

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

.premium-table th {
    background: #f8fafc;
    padding: 18px 24px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.premium-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.premium-table tr:hover td {
    background: #fcfdfe;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .premium-admin .modal-header {
        padding: 20px;
    }

    .admin-section {
        padding: 20px;
    }

    .premium-stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .premium-table th,
    .premium-table td {
        padding: 12px;
        font-size: 0.85rem;
    }

    .premium-admin .modal-content {
        height: 95vh;
        border-radius: 0 !important;
    }
}

.role-badge {
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.role-user {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

.btn-admin-action {
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-admin-action.edit {
    background: #f1f5f9;
    color: #475569;
}

.btn-admin-action.edit:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-admin-action.delete {
    background: #fef2f2;
    color: #991b1b;
}

.btn-admin-action.delete:hover {
    background: #fee2e2;
    transform: scale(1.05);
}