/* =========================================
   ESTILOS DEL PANEL DE ADMINISTRACIÓN (admin.css)
   ========================================= */

/* Espaciado general para que no choque con el menú */
.container {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* TARJETA PRINCIPAL */
.card-admin {
    background: #fff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 52, 102, 0.15); /* Sombra elegante */
    overflow: hidden;
    margin-top: 20px;
}

/* ENCABEZADO AZUL */
.card-header-admin {
    background: linear-gradient(135deg, #003466 0%, #0056b3 100%);
    color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid #f0ad4e; /* Línea dorada */
}
.card-header-admin h3 { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

/* CUERPO DE LA TARJETA */
.card-body-admin { padding: 40px; }

/* =========================================
   AQUÍ ESTÁ LA MAGIA PARA TUS CAMPOS 🛠️
   ========================================= */

/* 1. ETIQUETAS (LABELS) - ARRIBA Y ORDENADAS */
.form-label {
    display: block;      /* IMPORTANTE: Fuerza a ocupar su propia línea */
    width: 100%;         /* Ancho completo */
    font-weight: 700;    /* Negrita */
    color: #003466;      /* Azul oscuro */
    margin-bottom: 8px;  /* Espacio entre el texto y el cuadro */
    font-size: 0.9rem;
    text-transform: uppercase;
    text-align: left;    /* Alineado a la izquierda */
}

/* 2. CUADROS DE TEXTO (INPUTS) - ANCHOS Y ALTOS */
.form-control, .form-select {
    display: block;       /* IMPORTANTE: Se comporta como bloque */
    width: 100%;          /* Ocupa todo el ancho disponible */
    padding: 15px;        /* MÁS ALTO: Relleno interno generoso */
    font-size: 1rem;
    color: #333;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef; /* Borde gris suave */
    border-radius: 8px;   /* Bordes redondeados */
    box-sizing: border-box; /* Evita que el padding rompa el diseño */
    margin-bottom: 25px;  /* Espacio debajo de cada campo */
    transition: all 0.3s ease;
}

/* Efecto al hacer clic en el cuadro */
.form-control:focus, .form-select:focus {
    border-color: #f0ad4e; /* Borde naranja al escribir */
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(240, 173, 78, 0.1);
}

/* 3. ÁREA DE TEXTO (DESCRIPCIÓN) - GRANDE */
textarea.form-control {
    min-height: 180px; /* Altura mínima forzada */
    resize: vertical;  /* Solo permite estirar hacia abajo */
    line-height: 1.6;
}

/* 4. BOTÓN DE PUBLICAR */
.btn-publicar {
    display: block;
    width: 100%;
    background: #003466;
    color: #fff;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}
.btn-publicar:hover { background: #002244; }

.admin-separator {
    color: rgba(255,255,255,0.3);
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.btn-logout {
    background: none;
    border: none;
    color: #ff4d4d; /* Color rojizo para destacar el cierre de sesión */
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-logout:hover {
    color: #ff0000;
    transform: scale(1.1);
}