/**
 * ADMIN.CSS - Estilos para Panel de Administración COMPLETO
 * 
 * INCLUYE:
 * - Estilos base del admin
 * - Estilos para subida de fotos
 * - Todo el sistema integrado
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: #f5f7fa;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    position: relative;
    overflow: hidden;
}

.login-container {
    position: relative;
    z-index: 10;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.login-header .logo i {
    font-size: 2rem;
    color: #007AFF;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d1d1f;
}

.login-header p {
    color: #6e6e73;
    font-size: 1rem;
}

/* ===== FORMULARIO DE LOGIN ===== */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 0.9rem;
}

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

.input-group i {
    position: absolute;
    left: 16px;
    color: #6e6e73;
    z-index: 2;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    cursor: text;
    pointer-events: auto;
}

.input-group input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    background: rgba(255, 255, 255, 1);
}

.input-group input:hover {
    border-color: rgba(0, 122, 255, 0.3);
}

.input-group input::placeholder {
    color: #a0a0a0;
    opacity: 1;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #6e6e73;
    cursor: pointer;
    z-index: 3;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6e6e73;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    padding: 0;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 122, 255, 0.4);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
}

.back-link {
    color: #6e6e73;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.back-link:hover {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
}

/* ===== FORMAS ANIMADAS DE FONDO ===== */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -150px;
    animation-delay: 10s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: -75px;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===== DASHBOARD PAGE ===== */
.dashboard-page {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #007AFF;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

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

.nav-item {
    margin-bottom: 4px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #6e6e73;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item a:hover,
.nav-item.active a {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
}

.nav-item.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #007AFF;
}

.nav-item i {
    width:
