body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 20px;
    padding-bottom: 20px;
}

.app-card {
    max-width: 700px; /* Aumentado un poco para el nuevo selector */
    width: 100%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
}

.current-user-display {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: 0.95rem;
}

.form-label {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.3rem;
}

.form-select, .form-control {
    border-radius: 6px;
}

.input-group-text {
    background-color: #e9ecef;
    border-right: none; /* Para unir visualmente con el input/select */
}
.form-control, .form-select {
    border-left: none; /* Para unir visualmente con el icon span */
}
/* Asegurar que el primer input group no tenga border-left: none en el icono */
.input-group .input-group-text:first-child + .form-control,
.input-group .input-group-text:first-child + .form-select {
    border-left: 1px solid #dee2e6; /* Restaurar borde si es el primer elemento */
}
/* Corrección para que el icono sí tenga borde izquierdo */
.input-group > .input-group-text:first-child {
    border-right: none;
    border-left: 1px solid #dee2e6;
}
.input-group > .form-control:not(:first-child),
.input-group > .form-select:not(:first-child) {
    border-left: none;
}


.plaza-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    background-color: #fff;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.plaza-card .card-header {
    font-weight: bold;
    padding: 0.6rem 1rem;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    background-color: #3A9089; /* Teal color */
    color: white;
    font-size: 0.9rem;
}

.plaza-card .card-body {
    padding: 1rem;
    min-height: 160px; /* Aumentado para más info */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Cambiado para mejor distribución */
    align-items: center;
}

.plaza-status-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-circle {
    width: 30px;
    height: 30px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
}

.tick-icon {
    color: #28a745; /* Green tick */
}

.plaza-info {
    font-size: 0.75rem;
    color: #6c757d;
    min-height: 45px; /* Aumentado para info de franjas */
    margin-bottom: 0.5rem;
    width: 100%;
}
.plaza-info div {
    line-height: 1.3;
}

.plaza-card .btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    width: 90%;
    /* margin-top: auto; no es necesario con space-between */
}

.plaza-card.reserved-by-current-slot .card-header {
    background-color: #dc3545; /* Red for current user's reservation in selected slot */
}
.plaza-card.reserved-by-other-slot .card-header {
    background-color: #6c757d; /* Grey for other user's reservation in selected slot */
}
.plaza-card.reserved-by-other-slot .card-body {
    opacity: 0.7;
}
.plaza-card.reserved-by-other-slot .btn {
    background-color: #adb5bd;
    border-color: #adb5bd;
    cursor: not-allowed;
}
.plaza-card.partially-reserved .card-header {
    background-color: #ffc107; /* Amarillo si está reservado en la otra franja */
    color: #212529;
}


.btn-reserve {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #495057;
}
.btn-reserve:hover {
    background-color: #e9ecef;
}

.btn-cancel {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #dc3545;
}
.btn-cancel:hover {
    background-color: #e9ecef;
}

@media (min-width: 992px) {
    .plaza-card-col {
        padding-left: 7.5px;
        padding-right: 7.5px;
    }
}
@media (max-width: 991.98px) {
    .plaza-card-col {
        padding-left: 5px;
        padding-right: 5px;
    }
}
