/* styles.css - QR Task Manager Custom Styles */

/* Base Styles */
body {
    /*background-color:#222280;*/
    background-color:#FFF;
}
}


/* Navigation */
.navbar-brand {
    font-weight: bold;
}

/* Cards */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* QR Code Display */
.qr-code-display {
    text-align: center;
    padding: 20px;
}

.qr-code-display img {
    max-width: 300px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

/* Scanner */
.scanner-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#scanner-video {
    width: 100%;
    border-radius: 8px;
}

/* Scan History Items */
.scan-history-item {
    border-left: 4px solid #0d6efd;
    padding-left: 15px;
    margin-bottom: 15px;
}

.scan-history-item.start {
    border-left-color: #198754;
}

.scan-history-item.finish {
    border-left-color: #dc3545;
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stat-card h3 {
    margin: 0;
    font-size: 2.5rem;
}

.stat-card p {
    margin: 0;
    opacity: 0.9;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Login Section Styling */
#login-section .card,
#password-reset-section .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#login-section .card-title,
#password-reset-section .card-title {
    color: #0d6efd;
}

/* Form Styling */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Button Styling */
.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    background-color: #5568d3;
    border-color: #5568d3;
}

/* Tab Styling */
.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    border-bottom-color: #dee2e6;
}

.nav-tabs .nav-link.active {
    color: #667eea;
    background-color: transparent;
    border-color: transparent;
    border-bottom-color: #667eea;
    font-weight: 500;
}

/* Modal Styling */
.modal-header {
    background-color: #667eea;
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* QR Code Library */
#qr-codes-list .card {
    transition: transform 0.2s ease-in-out;
}

#qr-codes-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Alert Customization */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #d1f2eb;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    color: #997404;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

/* Task List Styling */
#tasks-list .list-group-item {
    border-left: 4px solid #667eea;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

#tasks-list .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* History List Styling */
#history-list .scan-history-item {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

#history-list .scan-history-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Badge Styling */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .scanner-container {
        max-width: 100%;
    }
    
    .qr-code-display img {
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 1.75rem;
    }
}

/* Print Styles for QR Codes */
@media print {
    body * {
        visibility: hidden;
    }
    
    .qr-code-display,
    .qr-code-display * {
        visibility: visible;
    }
    
    .qr-code-display {
        position: absolute;
        left: 0;
        top: 0;
    }
    
    .navbar,
    .nav-tabs,
    button,
    .btn {
        display: none !important;
    }
}

/* 2FA Setup Area */
#2fa-setup-area {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

#2fa-setup-area code {
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 1.1rem;
    color: #667eea;
}

/* Settings Section */
#settings-pane .card {
    height: 100%;
}

/* Input Group Styling */
.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Animation for New Scans */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scan-history-item.new {
    animation: slideIn 0.3s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* Focus Visible (Accessibility) */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Disabled State */
.btn:disabled,
.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success/Error States */
.form-control.is-valid {
    border-color: #198754;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State Messages */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}




.d1-logo-small {
    width:40%;
}
.d1-logo-tiny {
    width:25%;
}

.d1-logo-micro {
    width:10%;
}

    body {
               background: #FFF;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .auth-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.15);
            max-width: 350px;
            width: 100%;
            overflow: hidden;
        }
        
        .auth-header {
            text-align: center;
             margin-top: 20px;
   
        }
        
        .brand-logo {
  
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
           
        }
        
        .auth-header h2 {
        
            font-weight: 600;
        }
        
        .auth-body {
            padding: 20px;
        }
        
        .auth-footer {
            padding: 10px;
            text-align: center;
        }
        
        .auth-footer hr {
            margin: 20px 0;
        }
        
        .form-control:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        }
        
        .btn-primary {
            border-color: #667eea;
            border: none;
            padding: 12px;
            font-weight: 500;
        }
        
        .btn-primary:hover {
/*
*/
        }
        
        @media (max-width: 576px) {
            .auth-card {
                border-radius: 8px;
            }
            
            .auth-body {
                padding: 30px 20px;
            }
            
            .auth-footer {
                padding: 15px 20px 30px;
            }
        }
