/* Estilos base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-brand i {
    margin-right: 8px;
}

/* Hero section */
.hero {
    position: relative;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.card-body {
    padding: 1.25rem;
}

/* List groups */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.table th {
    border-top: none;
    font-weight: 500;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
}

/* Utility classes */
.text-muted {
    color: #6c757d !important;
}

.d-block {
    display: block;
}

.float-end {
    float: right;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* Document list specific styles */
.document-list {
    max-height: 500px;
    overflow-y: auto;
}

.document-list::-webkit-scrollbar {
    width: 8px;
}

.document-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.document-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.document-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        height: 30vh;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        max-height: 300px;
    }
}

/* Animation for loading */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

/* Custom colors */
.bg-primary {
    background-color: #0d6efd !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.text-warning {
    color: #ffc107 !important;
}

/* Icon spacing */
i.fas {
    margin-right: 5px;
}
/* Estilos para los badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

/* Estilos para elementos de lista mejorados */
.list-group-item {
    transition: all 0.2s ease;
}

.list-group-item small.text-muted {
    opacity: 0.7;
    font-size: 0.8em;
}

.list-group-item:hover small.text-muted {
    opacity: 1;
}