* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f23;
    color: #e0e0e0;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #1a1a3e 0%, #0f0f23 100%);
    border-bottom: 2px solid #2d2d5f;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header h1 {
    color: #00d9ff;
    font-size: 2em;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    margin-bottom: 5px;
}

.header p {
    color: #888;
    font-size: 0.9em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.breadcrumb {
    background: #1a1a3e;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.breadcrumb-item {
    color: #00d9ff;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

.breadcrumb-item:hover {
    background: #2d2d5f;
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.8);
}

.breadcrumb-separator {
    color: #555;
}

.search-box {
    background: #1a1a3e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    background: #0f0f23;
    border: 2px solid #2d2d5f;
    border-radius: 25px;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.search-box input::placeholder {
    color: #555;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.file-card {
    background: #1a1a3e;
    border: 1px solid #2d2d5f;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.2);
    border-color: #00d9ff;
}

.file-card.folder {
    background: linear-gradient(135deg, #1a1a3e 0%, #2d2d5f 100%);
}

.file-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

.file-name {
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    word-break: break-word;
    line-height: 1.4;
}

.file-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2d2d5f;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-download {
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    color: #000;
    width: 100%;
    text-align: center;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #00d9ff;
    font-size: 18px;
}

.loading:before {
    content: "⏳";
    display: block;
    font-size: 48px;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #555;
}

.empty-state:before {
    content: "📂";
    display: block;
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stats {
    background: #1a1a3e;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 24px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #00d9ff;
}

.upload-section {
    background: #1a1a3e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.upload-buttons {
    display: flex;
    gap: 10px;
}

.upload-header h3 {
    color: #00d9ff;
    font-size: 1.2em;
}

.btn-upload {
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    color: #000;
    padding: 10px 20px;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.btn-create-folder {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
    padding: 10px 20px;
}

.btn-create-folder:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

/* Botones de acción */
.btn-delete {
    background: linear-gradient(135deg, #ff4757 0%, #cc3333 100%);
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
}

.btn-delete:hover {
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.4);
}

.btn-delete-folder {
    background: linear-gradient(135deg, #ff4757 0%, #cc3333 100%);
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
}

.btn-delete-folder:hover {
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.4);
}

/* Nuevos estilos para Mover */
.btn-move {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #000;
    padding: 8px 16px;
    font-size: 12px;
}

.btn-move:hover {
    box-shadow: 0 5px 20px rgba(241, 196, 15, 0.4);
}

.file-actions-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.upload-queue {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-item {
    background: #0f0f23;
    border: 1px solid #2d2d5f;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.upload-item-icon {
    font-size: 24px;
}

.upload-item-info {
    flex: 1;
}

.upload-item-name {
    color: #fff;
    font-weight: 500;
    margin-bottom: 5px;
}

.upload-item-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #2d2d5f;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d9ff 0%, #00ff88 100%);
    transition: width 0.3s;
    border-radius: 3px;
}

.upload-item-status {
    font-size: 12px;
    color: #888;
}

.upload-item.success .upload-item-status {
    color: #00ff88;
}

.upload-item.error .upload-item-status {
    color: #ff4757;
}

.admin-mode-badge {
    background: #ff4757;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a3e;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #00d9ff;
    min-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
}

.modal-content h3 {
    color: #00d9ff;
    margin-bottom: 20px;
}

.folder-input {
    width: 100%;
    padding: 12px;
    background: #0f0f23;
    border: 2px solid #2d2d5f;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 16px;
    margin-bottom: 20px;
}

.folder-input:focus {
    outline: none;
    border-color: #00d9ff;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cancel {
    background: #2d2d5f;
    color: #e0e0e0;
    padding: 10px 20px;
}

.btn-cancel:hover {
    background: #3d3d7f;
}

/* Barra flotante para mover (Clipboard) */
.clipboard-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a3e;
    border: 2px solid #00d9ff;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
    }

    to {
        transform: translate(-50%, 0);
    }
}

.clipboard-info {
    color: #fff;
    font-weight: 500;
}

.clipboard-info span {
    color: #00d9ff;
    font-weight: bold;
}

.btn-paste {
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

/* Botón de Cerrar Sesión */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-logout {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid #ff4757;
    color: #ff4757;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #ff4757;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

/* =========================================
   ESTILOS PÁGINA DE LOGIN
   ========================================= */

/* Usamos esta clase para centrar el login sin romper el index.html */
body.login-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    /* Evita barras de desplazamiento innecesarias */
}

.login-card {
    background: #1a1a3e;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid #2d2d5f;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-card h2 {
    color: #00d9ff;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    color: #888;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: #0f0f23;
    border: 1px solid #2d2d5f;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.btn-login {
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    color: #000;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.error-msg {
    color: #ff4757;
    margin-top: 15px;
    display: none;
    font-size: 14px;
    background: rgba(255, 71, 87, 0.1);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 71, 87, 0.3);
}