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

.home-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Estilos para las páginas de administración */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    min-height: 100vh;
    position: fixed;
    z-index: 1000;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #0d6efd;
}

.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #0d6efd;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
}

/* Estilos para datatables */
.dataTables_wrapper .dataTables_length select {
    border-radius: 5px;
    padding: 5px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 5px;
    padding: 5px 10px;
    border: 1px solid #dee2e6;
}

/* Estilos para los badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Estilos para los modales */
.modal-content {
    border: none;
    border-radius: 10px;
}

/* Estilos para los botones */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Estilos específicos para el login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.login-container .card {
    width: 100%;
    max-width: 400px;
}

/* Colores personalizados */
.bg-primary {
    background-color: #3f51b5 !important;
}

.bg-success {
    background-color: #4caf50 !important;
}

.bg-info {
    background-color: #00bcd4 !important;
}

.bg-warning {
    background-color: #ff9800 !important;
}

.bg-danger {
    background-color: #f44336 !important;
}

/* Estilos para el escáner QR */
#qrScanner {
    background: #000;
    margin: 0 auto;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .login-container {
        padding: 20px;
    }
}