﻿/* ===========================
   CARD
   =========================== */

.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

    .card h2 {
        margin-top: 0;
        margin-bottom: 12px;
    }

/* ===========================
   MODAL
   =========================== */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45); /* slate oscuro */
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;

    /* animación entrada */
    opacity: 0;
    animation: modalFadeIn 0.15s ease-out forwards;
}

.modal-content {
    background: #ffffff;
    width: 420px;
    max-width: calc(100vw - 32px);
    border-radius: 12px;
    padding: 24px;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.15),
        0 4px 10px rgba(0,0,0,0.08);

    transform: translateY(10px);
    animation: modalSlideUp 0.2s ease-out forwards;
}

/* Header opcional */
.modal-content h2,
.modal-content h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

/* Texto */
.modal-content p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

/* Acciones */
.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes modalFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    to {
        transform: translateY(0);
    }
}

/* ===========================
   MODAL FORM CONTROLS
   =========================== */

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-content textarea,
.modal-content input,
.modal-content select {
    width: 100%;
    box-sizing: border-box;
}

/* Textarea específico */
.modal-content textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===========================
   FOTO USUARIOS
   =========================== */

.profile-photo-preview {
    display: flex;
}

.user-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d3d3d3;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d3d3d3;
}

/* ===========================
   BRANDING
   =========================== */

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center; /* centra horizontal */
    text-align: center; /* centra el h2 */
}

.sidebar-logo {
    height: 128px;
    width: auto;
    margin-bottom: 16px;
}