/* Variables y configuración global */
:root {
    --primary-color: #0F0758;
    --text-color: #000000;
    --border-color: #ddd;
    --background-color: #f5f5f5;
    --white: #fff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background-color: var(--background-color);
    background-image: url('../../imagenes/fondo.svg');
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: center top;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: bold;
    font-size: 16px;
}

/* Estilos generales de texto */
::placeholder {
    font-weight: normal !important;
    color: #8B8B8B !important;
}

.form-group label, p, label, h2, h3, .campos-obligatorios, .formato-info p, 
.no-file-selected, .file-upload label, footer p, input, select, textarea {
    color: #000000 !important;
    font-weight: bold !important;
}

.form-header h1, .form-header p {
    color: var(--white) !important;
}

/* Contenedor principal */
.container {
    max-width: 1000px;
    margin: 40px auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

/* Encabezado del formulario */
.form-header {
    background-color: var(--primary-color);
    padding: 30px;
    padding-top: 70px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    position: relative;
    overflow: visible;
}

.header-icon {
    width: 263px;
    height: auto;
    margin-bottom: -25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.form-header h1 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--white);
    font-size: 16px;
    opacity: 0.9;
}

.form-header i {
    color: var(--white);
    font-size: 32px;
}

/* Estructura del formulario */
form {
    padding: 30px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h2 {
    color: #0F0758;
    font-size: 24px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2 i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 24px;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

/* Grupos de formulario */
.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

/* Contenedor de teléfono */
.telefono-container {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.prefix {
    padding: 12px;
    background: var(--background-color);
    color: var(--text-color);
    border-right: 1px solid var(--border-color);
    font-weight: bold;
}

.telefono-container input {
    border: none !important;
}

/* Información de formato */
.formato-info {
    background-color: #e8f4fb;
    border-left: 4px solid #0F0758;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.formato-info p {
    margin: 5px 0;
    color: #000000 !important;
    font-size: 16px;
}

.formato-info i {
    color: #0F0758;
    margin-right: 8px;
}

/* Sección de adjuntar documentación */
.form-section.adjuntar-documentacion {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-section.adjuntar-documentacion h2 {
    color: #0F0758;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-section.adjuntar-documentacion h2 i {
    margin-right: 10px;
    font-size: 24px;
}

/* Carga de archivos */
.file-upload {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.file-upload:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.file-upload label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #000000 !important;
    font-size: 16px;
}

.examinar-button {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #495057;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.examinar-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.examinar-button i {
    margin-right: 8px;
    color: var(--primary-color);
}

.no-file-selected {
    display: none;
    margin-top: 8px;
    font-size: 16px;
    color: #000000 !important;
    font-weight: bold !important;
}

.file-selected {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
}

/* Botones */
.adjuntar-button,
.submit-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.adjuntar-button:hover,
.submit-button:hover {
    background: #218838;
}

/* Campos obligatorios */
.campos-obligatorios {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 20px;
    text-align: right;
}

label[for]:after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

label[for="aclaratoria"]:after {
    content: "";
}

/* Validación visual de campos */
.input-valid {
    border: 2px solid #28a745 !important;
    background-color: rgba(40, 167, 69, 0.05) !important;
}

.input-invalid {
    border: 2px solid #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05) !important;
}

.telefono-container.input-valid {
    border: 2px solid #28a745 !important;
}

.telefono-container.input-invalid {
    border: 2px solid #dc3545 !important;
}

/* Pie de página */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
    border-top: 1px solid var(--border-color);
}

/* Estilos para el modal y la animación de carga */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #000;
}

/* Contenedor de carga */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Animación de carga */
.pl,
.pl__worm {
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

.pl {
    animation-name: bump9;
    animation-timing-function: linear;
    width: 8em;
    height: 8em;
}

.pl__ring {
    stroke: hsla(var(--hue),10%,10%,0.1);
    transition: stroke 0.3s;
}

.pl__worm {
    animation-name: worm9;
    animation-timing-function: cubic-bezier(0.42,0.17,0.75,0.83);
}

/* Animaciones */
@keyframes bump9 {
    from, 42%, 46%, 51%, 55%, 59%, 63%, 67%, 71%, 74%, 78%, 81%, 85%, 88%, 92%, to { transform: translate(0,0); }
    44% { transform: translate(1.33%,6.75%); }
    53% { transform: translate(-16.67%,-0.54%); }
    61% { transform: translate(3.66%,-2.46%); }
    69% { transform: translate(-0.59%,15.27%); }
    76% { transform: translate(-1.92%,-4.68%); }
    83% { transform: translate(9.38%,0.96%); }
    90% { transform: translate(-4.55%,1.98%); }
}

@keyframes worm9 {
    from { stroke-dashoffset: 10; }
    25% { stroke-dashoffset: 295; }
    to { stroke-dashoffset: 1165; }
}

/* Estilos para la sección de agenda */
.agenda-citas {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Calendario */
.calendar-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.month-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.nav-button {
    background-color: var(--primary-color);
    color: white !important;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.nav-button:hover {
    background-color: #0a043d;
}

.current-month {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: var(--primary-color) !important;
}

.calendar {
    padding: 10px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.weekdays div {
    padding: 10px;
    color: var(--primary-color) !important;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

/* Estilos de los días */
.day {
    position: relative;
    height: 50px;  /* Reducido de 70px */
    border-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  /* Cambiado a center */
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    padding: 8px 5px;
}

.day:hover {
    background-color: #f5f5f5;
    transform: scale(1.02);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.day.empty {
    background-color: #f5f5f5;
    cursor: default;
    border: none;
}

.day:hover:not(.empty):not(.disabled):not(.sunday) {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.day.has-appointments {
    background-color: #d4edda; /* Cambiado de #e8f4ff (celeste) a #d4edda (verde claro) */
    border: 1px solid #c3e6cb; /* Cambiado de #b8daff a #c3e6cb */
}

.day.has-appointments:hover {
    background-color: #c3e6cb; /* Cambiado de #d1e7ff a #c3e6cb */
}

.day.sunday {
    background-color: #ffeeee;
    cursor: not-allowed;
}

.day.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

.day.blocked {
    background-color: #ffcdd2;
    cursor: not-allowed;
}

.day-number {
    font-weight: bold;
    font-size: 16px;
    color: #000000;
}

/* Estilos para indicadores de disponibilidad */
.day.disponibilidad-alta {
    background-color: #d4edda; /* Verde claro */
    border-color: #28a745;
}

.day.disponibilidad-media {
    background-color: #fff3cd; /* Amarillo claro */
    border-color: #ffc107;
}

.day.disponibilidad-baja {
    background-color: #ffe5d0; /* Naranja claro */
    border-color: #fd7e14;
}

.day.disponibilidad-nula {
    background-color: #f8d7da; /* Rojo claro */
    border-color: #dc3545;
}

.day.disabled {
    background-color: #e9ecef; /* Gris claro */
    border-color: #adb5bd;
    opacity: 0.7;
    cursor: not-allowed;
}

.day.disponibilidad-alta .appointments-count {
    background-color: rgba(40, 167, 69, 0.2);
    color: #155724 !important;
}

.day.disponibilidad-media .appointments-count {
    background-color: rgba(255, 193, 7, 0.2);
    color: #856404 !important;
}

.day.disponibilidad-baja .appointments-count {
    background-color: rgba(253, 126, 20, 0.2);
    color: #fd7e14 !important;
}

.day.disponibilidad-nula .appointments-count {
    background-color: rgba(220, 53, 69, 0.2);
    color: #721c24 !important;
}

.has-appointments {
    background-color: rgba(40, 167, 69, 0.1); /* Cambiado para usar verde en lugar de azul */
    border-color: #28a745; /* Cambiado a verde */
}

.appointments-count {
    display: none;
}

/* Selección de horarios */
.time-selection {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.time-selection h4 {
    margin-bottom: 15px;
    color: var(--primary-color) !important;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.time-slot {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:hover {
    background-color: #e8f4ff;
    border-color: #b8daff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.time-slot.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.time-slot.selected .time,
.time-slot.selected .cupos,
.time-slot.selected .ocupados {
    color: white !important;
}

.time {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.cupos {
    font-size: 14px;
    color: #28a745 !important;
}

.ocupados {
    font-size: 12px;
    color: #6c757d !important;
}

.time-slot.selected .cupos,
.time-slot.selected .ocupados {
    color: white;
}

/* Media queries para responsividad */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        margin: 30px auto;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .calendar-container {
        overflow-x: auto;
    }
    
    .header-icon {
        width: 220px;
    }
    
    .form-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 15px auto;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-header {
        padding: 25px;
        padding-top: 50px;
    }
    
    .form-header h1 {
        font-size: 22px;
    }
    
    form {
        padding: 20px;
    }
    
    .calendar {
        gap: 2px;
    }

    .day {
        min-height: 60px;
        padding: 5px;
    }

    .day-number {
        font-size: 0.9em;
    }

    .appointments-count {
        font-size: 0.8em;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-slot {
        padding: 12px;
    }
    
    .time-slot .time {
        font-size: 1.1em;
    }
    
    .time-slot .cupos {
        font-size: 0.9em;
    }
    
    /* Mejorar la interactividad táctil */
    button, 
    .submit-button,
    .nav-button,
    .time-slot {
        min-height: 44px;
        min-width: 44px; /* Tamaño mínimo para interacción táctil */
    }
    
    /* Mejorar navegación del calendario */
    .month-navigation {
        gap: 15px;
    }
    
    .current-month {
        font-size: 16px;
        min-width: 120px;
        text-align: center;
    }
    
    /* Ajustar tamaño de los días de la semana */
    .weekdays div {
        padding: 8px 5px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .container {
        margin: 10px;
        max-width: 100%;
    }
    
    .form-header {
        padding: 20px;
        padding-top: 40px;
    }
    
    .header-icon {
        width: 180px;
        margin-top: -30px;
    }
    
    form {
        padding: 15px;
    }
    
    .form-section h2 {
        font-size: 20px;
    }
    
    .form-group label {
        font-size: 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px; /* Mantener tamaño legible */
        height: 48px; /* Altura mínima para interacción táctil */
    }
    
    /* Mejorar visualización del calendario */
    .weekdays div {
        font-size: 13px;
        padding: 8px 2px;
    }
    
    .day {
        height: 55px;
        font-size: 14px;
    }
    
    .day-number {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .appointments-count {
        font-size: 11px;
        padding: 2px 4px;
    }
    
    /* Ajustar slots de tiempo */
    .time-slots {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .time-slot {
        padding: 15px 10px;
    }
    
    /* Mejorar visualización de carga de archivos */
    .file-upload {
        padding: 15px 10px;
    }
    
    .file-upload input[type="file"] {
        width: 100%;
        padding: 10px;
        height: auto;
        min-height: 48px;
    }
    
    /* Ajustar botones y elementos interactivos */
    .submit-button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 5px;
    }
    
    .form-header h1 {
        font-size: 20px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    /* Mejorar visualización del calendario */
    .month-navigation {
        gap: 10px;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
    }
    
    .current-month {
        font-size: 15px;
    }
    
    .weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
    }
    
    .weekdays div {
        padding: 5px 2px;
        font-size: 12px;
    }
    
    .days {
        gap: 3px;
    }
    
    .day {
        height: 48px;
    }
    
    /* Ajustar elementos de formulario */
    .form-section {
        margin-bottom: 25px;
    }
    
    .form-section h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .form-section h2 i {
        font-size: 20px;
    }
    
    /* Mejorar visualización de carga de archivos */
    .documento-descripcion {
        font-size: 13px;
    }
    
    .formato-info {
        font-size: 12px;
        padding: 8px;
    }
}
/* Estilos para las alertas llamativas */
.alert {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.alert i {
    font-size: 48px;
    margin-bottom: 10px;
}

.alert h3 {
    margin: 10px 0;
    font-size: 22px;
}

/* Estilo para el icono de cabecera - MODIFICADO */
.header-icon {
    width: 180px; /* Reducido para mejor proporción */
    height: auto;
    margin-bottom: 15px; /* Espacio entre logo y título */
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0; /* Eliminado el margen negativo */
    position: relative;
    z-index: 2;
}

/* Modificación de colores del encabezado */
.form-header {
    background-color: #0F0758;
    padding: 40px 30px; /* Ajustado el padding vertical */
    position: relative;
}

/* Asegurar que los títulos de sección mantengan el color azul */
.form-section h2, .form-section h2 i {
    color: #0F0758 !important;
}

/* Color de texto general - ACTUALIZADO A NEGRO, TAMAÑO 16px Y NEGRITA */
body, p, label, input, select, .form-group label, .campos-obligatorios, .formato-info p {
    color: #000000;
    font-size: 16px;
    font-weight: bold !important;
    font-family: 'Montserrat', sans-serif;
}

/* Mantener color original para placeholders y sin negrita */
input::placeholder, select::placeholder, textarea::placeholder {
    color: #8B8B8B !important;
    font-size: 16px;
    font-weight: normal !important;
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif,
    sans-serif;
    font-weight: 600;
}

/* Mantener color blanco para el botón de enviar */
.submit-button {
    color: #fff !important;
    font-weight: normal !important;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.form-section h2 i {
    color: #0F0758;
}

.file-upload label, .no-file-selected, .file-selected, .examinar-button {
font-size: 16px !important;
}

body {
    background-attachment: fixed;
}

/* Mejorar contraste del contenedor sobre el fondo */
.container {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Formato info en la sección de documentos */
.formato-info p {
    font-size: 16px !important;
    color: #000000 !important;
}

/* Estilo para fechas deshabilitadas */
.day.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

.day.disabled .appointments-count {
    display: none;
}

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

/* Add these styles to the existing CSS file */

/* Estilos para la sección de documentos */
.documentos-lista {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

.documentos-lista li {
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #0F0758;
    border-radius: 4px;
}

/* Estilos mejorados para los campos de subida de documentos */
.documento-upload {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 2px solid #d1d3e2;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.documento-upload:hover {
    border-color: #0F0758;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.documento-upload label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #0F0758 !important;
    margin-bottom: 8px;
}

.documento-descripcion {
    font-size: 14px;
    color: #555 !important;
    margin-bottom: 15px;
    font-weight: normal;
}

.documento-upload input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #0F0758;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.documento-upload input[type="file"]:hover {
    background-color: #f0f4ff;
}

.file-info {
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d !important;
    font-style: italic;
}

/* Estilo para cuando se selecciona un archivo */
.documento-upload.file-selected {
    background-color: #f0f4ff;
    border-color: #0F0758;
}

/* Añadir un asterisco rojo para campos obligatorios */
label[for] + .documento-descripcion::before {
    content: "* ";
    color: #dc3545;
    font-weight: bold;
}

.documento-upload input[type="file"]:valid {
    border-color: #28a745;
    background-color: #f8fff8;
}

/* ... existing code ... */

/* Estilos para las alertas */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

.custom-alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.custom-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.custom-alert-icon {
    margin-right: 15px;
    font-size: 24px;
}

.custom-alert.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffeeba;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
}

.custom-alert.alert-warning i {
    color: #ffc107;
}

.custom-alert .alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-alert i {
    font-size: 1.5rem;
}

.custom-alert .close-alert {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    margin-left: auto;
    padding: 0 0 0 10px;
}

.custom-alert-content {
    flex: 1;
}

.custom-alert-title {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 18px;
}

.custom-alert-message {
    font-size: 16px;
}

.custom-alert-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.2s;
}

.custom-alert-close:hover {
    color: rgba(0, 0, 0, 0.8);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}