/* admin.css - Estilos específicos para el Panel de Administración Oculto con la nueva paleta Deep Navy & Royal Blue */

#adminPanel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f1f5fd;
    z-index: 3000;
    display: flex;
    font-family: var(--font-primary);
}

.admin-sidebar {
    width: 270px;
    background: #0f172a;
    color: #ffffff;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1e293b;
}

.admin-brand {
    font-size: 1.45rem;
    font-weight: 800;
    padding: 0 24px 20px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.admin-brand b {
    color: #3b82f6;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.admin-nav li {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.92rem;
    color: #94a3b8;
}

.admin-nav li:hover {
    background: #1e293b;
    color: #ffffff;
}

.admin-nav li.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.admin-nav li a {
    color: inherit;
}

.admin-content {
    flex: 1;
    padding: 35px 40px;
    overflow-y: auto;
    background: #f8fafc;
}

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

.admin-header h2 {
    font-size: 1.85rem;
    color: #0f172a;
    font-weight: 800;
}

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

.admin-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.stat-card {
    background: #ffffff;
    padding: 26px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(16, 34, 68, 0.05);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 34, 68, 0.08);
}

.stat-card h3 {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-value {
    font-size: 2.6rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
    letter-spacing: -0.02em;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-header h3 {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 800;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(16, 34, 68, 0.04);
    border: 1px solid #e2e8f0;
}

.admin-table th, .admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    background: #f1f5f9;
    font-weight: 700;
    font-size: 0.85rem;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(16, 34, 68, 0.04);
    border: 1px solid #e2e8f0;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 99px;
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}
