html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (max-width: 576px) {
    .table td, .table th {
        white-space: nowrap;
        padding: 8px;
        font-size: 14px;
    }
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

h1, h2 {
    color: #333;
    margin-bottom: 1rem;
}

.header, .footer {
    background-color: #343a40;
    padding: 1rem 0;
    color: #fff;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

.page_login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.card-login {
    background-color: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card-login:hover {
    transform: translateY(-5px);
}

.card-header-login {
    color: #fff;
    text-align: center;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    background: linear-gradient(45deg, #343a40, #495057);
}

.card-body {
    border-radius: 0 0 12px 12px;
    color: #333;
    padding: 2rem;
}

.card-footer {
    background-color: #343a40;
    border-top: none;
    padding: 1rem;
}

.btn-login {
    background: linear-gradient(45deg, #343a40, #495057);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-blue {
    color: #007bff;
    border: 2px solid #007bff;
    transition: all 0.3s ease;
}

.btn-outline-blue:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
}

footer {
    background-color: #f8f9fa;
    color: #6c757d;
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.table {
    background-color: #fff;
    color: #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.table thead {
    background: linear-gradient(45deg, #9B59B6, #8E44AD);
    color: #fff;
}

.table thead th {
    cursor: pointer;
    padding: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.table thead th:hover {
    background-color: rgba(255,255,255,0.1);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.table td, .table th {
    border: 1px solid #e9ecef;
    padding: 1rem;
    vertical-align: middle;
}

.table-group {
    background-color: #696969;
    color: #fff;
}

.btn-warning {
    background: linear-gradient(45deg, #F39C12, #E67E22);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.btn-danger {
    background: linear-gradient(45deg, #E74C3C, #C0392B);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.btn-warning:hover, .btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.card {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.highlight {
    color: #E74C3C;
    font-weight: 600;
}

.link {
    color: #3498DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: #2980B9;
}

.card-body dl.row dt {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #495057;
}

.card-body dl.row dd {
    margin-bottom: 1.25rem;
    color: #6c757d;
}

.divider {
    border-top: 1px solid #e9ecef;
    margin: 1.5rem 0;
}

.btn-group {
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.camera-container {
    background-color: #f8f9fa;
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#video {
    width: 100%;
    height: auto;
    display: block;
}

.scanner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 3px solid #E74C3C;
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0 0 0 100vmax rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.manual-input-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
