/* Estilos para búsqueda y gestión de personas */

/* Form group - responsive */
.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group input,
.form-group button,
.form-group .btn {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .form-group input,
    .form-group button,
    .form-group .btn {
        flex: 1 1 100%;
    }
}

/* Records container */
.records {
    margin-top: 20px;
}

/* Record card - mobile-first responsive */
.record {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    background-color: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: box-shadow 0.2s ease-in-out;
}

.record:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

@media (min-width: 576px) {
    .record {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Record info section */
.record-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

/* Avatar */
.avatar {
    width: 50px;
    height: 50px;
    background-color: #dee2e6;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #6c757d;
}

/* Record details */
.record-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.record-details strong {
    font-size: 1rem;
    font-weight: 600;
    word-wrap: break-word;
}

.record-details span {
    font-size: 0.875rem;
    color: #6c757d;
    word-wrap: break-word;
}

/* Buttons - using Bootstrap button styles */
.btn-delete,
.btn-modify {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #bb2d3b;
    color: white;
}

.btn-modify {
    background-color: #ffc107;
    color: white;
}

.btn-modify:hover {
    background-color: #ffca2c;
    color: #000;
}

/* Full width buttons on mobile */
@media (max-width: 575.98px) {
    .btn-delete,
    .btn-modify,
    .record .btn {
        width: 100%;
    }
}

/* Footer positioning */
#main-footer {
    flex-shrink: 0;
}

/* Improve contrast for better accessibility */
.bg-body-secondary {
    background-color: #f8f9fa !important;
}
