/* Custom styles for EBM Verification System */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* General styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding: 0 15px;
}

/* Card styles */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: 500;
}

/* Button styles */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Navigation */
.navbar {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-nav {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dropdown-menu {
  max-height: 60vh;
  overflow-y: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.custom-logo {
  max-width: 100%;
  height: auto;
}
/* Link styles */


/* Form styles */
.form-control {
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Table styles */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background-color: var(--light-color);
    font-weight: 500;
}

/* Alert styles */
.alert {
    border-radius: 0.5rem;
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Progress bar styles */
.progress {
    border-radius: 0.25rem;
    height: 1.5rem;
}

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

.qr-scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--success-color);
    border-radius: 8px;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-top: 1rem;
        padding-bottom: 3rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
    }
    
    .table-responsive {
        border-radius: 0.5rem;
        overflow: hidden;
    }
}

@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .card-header {
        text-align: center;
    }
}

@media (max-width: 576px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 3rem;
  }
}


@media (max-width: 576px) {
  .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
  }
}


/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .container {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .card {
        border: none;
        box-shadow: none;
    }
    
    .card-header {
        background-color: #fff !important;
        color: #000 !important;
    }
    
    .table {
        border: 1px solid #dee2e6;
    }
    
    .table th {
        background-color: #fff !important;
    }
}

/* Dashboard styles */
.dashboard-card {
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Verification workflow styles */
.verification-step {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.verification-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 1.5rem;
}

.verification-step:nth-child(1)::before {
    content: '1';
}

.verification-step:nth-child(2)::before {
    content: '2';
}

.verification-step:nth-child(3)::before {
    content: '3';
}

.verification-step:nth-child(4)::before {
    content: '4';
}

/* Accessibility improvements */
.btn:focus, .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background-color: #121212;
        color: #f5f5f5;
    }
    
    body.dark-mode .card {
        background-color: #1e1e1e;
        border-color: #333;
    }
    
    body.dark-mode .card-header {
        background-color: #2a2a2a;
        border-color: #333;
    }
    
    body.dark-mode .table {
        color: #f5f5f5;
    }
    
    body.dark-mode .table th,
    body.dark-mode .table td {
        border-color: #333;
    }
    
    body.dark-mode .form-control {
        background-color: #2a2a2a;
        border-color: #333;
        color: #f5f5f5;
    }
}
