/* Estilos gerais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.login-body {
    background: linear-gradient(135deg, #007bff, #6610f2);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 15px;
}

.login-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Navbar personalizada */
.navbar-brand {
    font-weight: bold;
}

/* Cards */
.card {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

/* Tabelas */
.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

/* Botões */
.btn {
    border-radius: 4px;
}

/* Formulários */
.form-control {
    border-radius: 4px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

/* Alertas */
.alert {
    border-radius: 4px;
    border: none;
}

/* Listas */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    border-top: 1px solid #eee;
}


/* Estilos para DataTables */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_filter input {
    margin-left: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
}

/* Cartões de estatísticas */
.card-stats {
    border-left: 4px solid;
}

.border-left-primary {
    border-left-color: #4e73df !important;
}

.border-left-success {
    border-left-color: #1cc88a !important;
}

.border-left-info {
    border-left-color: #36b9cc !important;
}

.border-left-warning {
    border-left-color: #f6c23e !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

/* Badges personalizados */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

/* Estilos específicos para o módulo do bibliotecário */
.card-stats .card-body {
    padding: 1rem;
}

.list-group-item small {
    font-size: 0.8rem;
}

/* Badges para status */
.badge-warning {
    background-color: #f6c23e;
}

.badge-danger {
    background-color: #e74a3b;
}

.badge-success {
    background-color: #1cc88a;
}

.badge-info {
    background-color: #36b9cc;
}

/* Tabelas responsivas */
.table-responsive {
    overflow-x: auto;
}

/* Botões de ação */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Cartões com cabeçalho colorido */
.card .card-header.bg-warning {
    color: white;
}


/* Estilos específicos para o módulo do leitor */
.livro-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.livro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

/* Visualizador de PDF */
#pdf-viewer {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

#pdf-canvas {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar do leitor */
.sidebar {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

.sidebar .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Abas do histórico */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    border-bottom-color: #007bff;
    color: #007bff;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: #dee2e6;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        margin-bottom: 1rem;
    }
    
    .livro-card {
        margin-bottom: 1rem;
    }
}

/* Animações suaves */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}