/* Admin Panel Custom Styles */

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

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

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

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f8f9fa;
    font-weight: 600;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

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

/* Buttons */
.btn {
    font-weight: 500;
}

/* Login Page */
.min-vh-100 {
    min-height: 100vh;
}

/* File Preview Modal */
.preview-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    padding: 20px;
    z-index: 9999;
    max-width: 500px;
    max-height: 600px;
    overflow: auto;
}

.preview-modal.show {
    display: block;
}

.preview-content {
    text-align: center;
}

.preview-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.preview-content .spinner-border {
    margin: 20px auto;
}

/* File type icons */
.bi-file-image {
    font-size: 1.2rem;
}

.bi-file-pdf {
    font-size: 1.2rem;
}

/* Hover effect for file rows */
.file-preview-row:hover {
    background-color: #f8f9fa;
}

/* Statistics Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info {
    border: none;
}

.card.bg-primary .card-body,
.card.bg-success .card-body,
.card.bg-info .card-body {
    padding: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .preview-modal {
        max-width: 90%;
        max-height: 80vh;
    }
}

/* Form styling */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* QR Code styling */
.card-body img[alt="QR Code"] {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    background-color: white;
}

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

/* Audit log details */
code.small {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Upload status badges */
.badge.bg-info {
    background-color: #0dcaf0 !important;
}

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

/* Smooth transitions */
* {
    transition: all 0.2s ease-in-out;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

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