/* ═══════════════════════════════════════════════════════════════════════════════
   ESTILOS - GESTIÓN DE RESERVAS (MisReservas.razor)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* CONTENEDOR PRINCIPAL */
.misreservas-container {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* HEADER CON GRADIENTE */
.header-gradient-reservas {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    padding: 40px 0;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    margin-bottom: 20px;
}

.header-gradient-reservas h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: white;
    letter-spacing: -0.5px;
}

.header-gradient-reservas .subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    margin-bottom: 0;
    opacity: 0.95;
}

/* SECCIÓN DE ESTADÍSTICAS */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-card-pending {
    border-left-color: #f59e0b;
}

.stat-card-pending .stat-icon {
    color: #f59e0b;
}

.stat-card-approved {
    border-left-color: #10b981;
}

.stat-card-approved .stat-icon {
    color: #10b981;
}

.stat-card-rejected {
    border-left-color: #ef4444;
}

.stat-card-rejected .stat-icon {
    color: #ef4444;
}

.stat-card-revenue {
    border-left-color: #8b5cf6;
}

.stat-card-revenue .stat-icon {
    color: #8b5cf6;
}

.stat-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 500;
}

/* SECCIÓN DE FILTROS */
.filters-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-item .form-control {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-item .form-control:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* SECCIÓN DE RESERVAS */
.reservas-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 15px;
}

/* GRID DE RESERVAS */
.reservas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

/* CARD DE RESERVA */
.reserva-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.reserva-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #0d9488;
}

/* HEADER DE CARD */
.reserva-header {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.reserva-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: white;
    flex: 1;
}

/* BADGES DE ESTADO */
.estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.estado-pendiente {
    background: rgba(255, 255, 255, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.estado-aprobada {
    background: rgba(16, 185, 129, 0.2);
    color: #d1fae5;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.estado-rechazada {
    background: rgba(239, 68, 68, 0.2);
    color: #fee2e2;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* BODY DE CARD */
.reserva-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
}

/* SECCIONES DE INFORMACIÓN */
.info-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.info-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: #6b7280;
    flex-shrink: 0;
}

.info-value {
    color: #1f2937;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.info-item.important .info-value {
    font-weight: 700;
    color: #0d9488;
    font-size: 16px;
}

/* CAJA DE NOTAS */
.notes-box {
    background: #f9fafb;
    border-left: 3px solid #0d9488;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    font-style: italic;
}

/* ACCIONES */
.reserva-actions {
    padding: 16px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 10px;
}

.btn-action {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-action i {
    font-size: 16px;
}

.btn-success:hover:not(:disabled) {
    background-color: #059669;
    transform: scale(1.02);
}

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
    transform: scale(1.02);
}

.btn-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ALERTA */
.alert {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .reservas-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 992px) {
    .header-gradient-reservas h1 {
        font-size: 28px;
    }

    .header-gradient-reservas .subtitle {
        font-size: 14px;
    }

    .filters-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .reservas-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .reserva-header {
        flex-direction: column;
        gap: 8px;
    }

    .estado-badge {
        width: 100%;
        justify-content: center;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-value {
        text-align: left !important;
    }
}

@media (max-width: 768px) {
    .misreservas-container {
        padding-bottom: 20px;
    }

    .header-gradient-reservas {
        padding: 30px 0;
        margin-bottom: 15px;
    }

    .header-gradient-reservas h1 {
        font-size: 24px;
    }

    .header-gradient-reservas .subtitle {
        font-size: 13px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 16px;
        gap: 16px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    .filters-section {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
        margin-bottom: 20px;
    }

    .reservas-section {
        padding: 16px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .reservas-grid {
        grid-template-columns: 1fr;
    }

    .reserva-card {
        border-radius: 8px;
    }

    .reserva-body {
        max-height: none;
    }

    .reserva-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }

    .info-section {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .info-title {
        font-size: 13px;
    }

    .info-item {
        font-size: 13px;
    }

    .info-item.important .info-value {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header-gradient-reservas {
        padding: 24px 0;
    }

    .header-gradient-reservas h1 {
        font-size: 20px;
    }

    .header-gradient-reservas .subtitle {
        font-size: 12px;
    }

    .stat-card {
        padding: 12px;
        gap: 12px;
    }

    .stat-icon {
        font-size: 28px;
        width: 40px;
        height: 40px;
    }

    .stat-number {
        font-size: 18px;
    }

    .filters-section {
        padding: 12px;
    }

    .filter-item label {
        font-size: 12px;
    }

    .reserva-header {
        padding: 12px;
    }

    .reserva-title {
        font-size: 16px;
    }

    .estado-badge {
        padding: 4px 8px;
        font-size: 11px;
    }

    .reserva-body {
        padding: 12px;
    }

    .reserva-actions {
        padding: 12px;
    }

    .btn-action {
        padding: 8px 10px;
        font-size: 12px;
    }

    .info-title {
        font-size: 12px;
    }

    .info-item {
        font-size: 12px;
    }

    .info-item.important .info-value {
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MODO OSCURO (Opcional)
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
    .misreservas-container {
        background-color: #111827;
    }

    .filters-section,
    .reservas-section,
    .reserva-card {
        background: #1f2937;
        border-color: #374151;
    }

    .stat-card {
        background: #1f2937;
        border-color: #374151;
    }

    .section-title,
    .reserva-title {
        color: #f3f4f6;
        border-color: #374151;
    }

    .info-title,
    .filter-item label {
        color: #d1d5db;
    }

    .info-label {
        color: #9ca3af;
    }

    .info-value {
        color: #e5e7eb;
    }

    .notes-box {
        background: #111827;
        border-color: #0d9488;
        color: #d1d5db;
    }

    .form-control {
        background-color: #111827;
        border-color: #374151;
        color: #f3f4f6;
    }

    .alert {
        background: #1f2937;
        border-color: #374151;
        color: #d1d5db;
    }
}
