/* ============================================
   ESTILOS PANEL DE ADMINISTRACIÓN
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f5f5f5;
}

/* ============================================
   PÁGINA DE LOGIN
   ============================================ */

.login-page {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #4f5e6b;
    margin-bottom: 30px;
    font-size: 1rem;
}

.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #a9c353;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #a9c353;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #a9c353;
    color: #ffffff;
}

.btn-primary:hover {
    background: #8ba042;
}

.login-note {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #4f5e6b;
    text-align: center;
    line-height: 1.6;
}

/* ============================================
   PANEL DE ADMINISTRACIÓN
   ============================================ */

.admin-body {
    min-height: 100vh;
    background: #f5f5f5;
}

.admin-header {
    background: #1a1a1a;
    color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-logout {
    padding: 8px 16px;
    background: #a9c353;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-logout:hover {
    background: #8ba042;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    min-height: calc(100vh - 80px);
}

.admin-sidebar {
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
}

.admin-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #4f5e6b;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f9f9f9;
    color: #1a1a1a;
}

.nav-item.active {
    background: #f0f7e8;
    color: #a9c353;
    border-left-color: #a9c353;
    font-weight: 600;
}

.nav-item span {
    font-size: 1.2rem;
}

.admin-main {
    padding: 30px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7e8;
    border-radius: 8px;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.stat-info p {
    color: #4f5e6b;
    font-size: 0.9rem;
}

.stat-link {
    color: #a9c353;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.stat-link:hover {
    text-decoration: underline;
}

.admin-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    flex: 1;
    padding: 15px 25px;
    background: #a9c353;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn:hover {
    background: #8ba042;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 196, 83, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-container {
        grid-template-columns: 200px 1fr;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-container {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .nav-item {
        white-space: nowrap;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        flex-direction: column;
    }
}

