/* Estilos generales */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Cards de personas */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-title {
    color: #0d6efd;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Botones */
.btn {
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: scale(1.02);
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Animación de desaparición */
.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
}

/* Formulario de importación */
.import-area {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: inline-block;
    padding: 1rem 2rem;
    background: #0d6efd;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}

.file-input-label:hover {
    background: #0b5ed7;
}

/* Alertas */
.alert {
    border-radius: 8px;
}

/* Contador de personas */
h2 {
    color: #333;
    font-weight: 600;
}

/* Buscador */
.search-box {
    max-width: 600px;
}

.search-box .input-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.search-box .form-control {
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-box .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.search-box .input-group-text {
    background-color: white;
    border-right: none;
    font-size: 1.2rem;
}

.search-box #clear-search {
    border-left: none;
}

@media (max-width: 768px) {
    .search-box {
        max-width: 100%;
    }
    
    .search-box .form-control {
        font-size: 0.9rem;
    }
}
