/* Custom styles for Sample Request System */
/* Using Bootstrap dark theme variables and minimal custom overrides */

:root {
    /* Custom variables that work with Bootstrap's dark theme */
    --custom-border-radius: 0.5rem;
    --custom-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --custom-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* File upload areas */
.upload-area {
    border: 2px dashed var(--bs-border-color);
    border-radius: var(--custom-border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary-bg-subtle);
}

.upload-area.dragover {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary-bg-subtle);
    transform: scale(1.02);
}

/* Material rows in forms */
.material-row {
    background-color: var(--bs-body-bg);
    transition: all 0.3s ease;
}

.material-row:hover {
    background-color: var(--bs-tertiary-bg);
}

/* File items */
.file-item {
    transition: all 0.3s ease;
}

.file-item:hover {
    background-color: var(--bs-tertiary-bg);
}

/* Status badges with consistent sizing */
.badge {
    font-size: 0.75em;
    font-weight: 600;
}

/* Notification badge positioning */
.notification-badge {
    font-size: 0.6rem;
    min-width: 1rem;
    height: 1rem;
    line-height: 1;
    text-align: center;
}

/* Card enhancements */
.card {
    box-shadow: var(--custom-shadow);
    border-radius: var(--custom-border-radius);
}

.card:hover {
    box-shadow: var(--custom-shadow-lg);
}

/* Profile side card dark adaptation */
.card-profile-meta {
    background: var(--bs-dark-bg-subtle, #222); /* fallback */
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}
.card-profile-meta .card-header {
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--bs-border-color);
}
.card-profile-meta p strong {
    color: var(--bs-secondary-color, #adb5bd);
    font-weight: 600;
}

/* Table improvements */
.table-responsive {
    border-radius: var(--custom-border-radius);
}

.table th {
    border-bottom: 2px solid var(--bs-border-color);
    font-weight: 600;
}

/* Form enhancements */
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Button groups */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--bs-border-radius);
    border-bottom-left-radius: var(--bs-border-radius);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);
}

/* Loading states */
.btn:disabled {
    opacity: 0.7;
}

/* Comments section */
.comment {
    border-left: 3px solid var(--bs-primary);
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Dashboard stats cards */
.card .card-body .d-flex i[data-feather] {
    width: 2rem;
    height: 2rem;
}

/* Navigation enhancements */
.navbar-brand i[data-feather] {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-link i[data-feather] {
    width: 1rem;
    height: 1rem;
}

/* Dropdown menus */
.dropdown-menu {
    box-shadow: var(--custom-shadow-lg);
    border-radius: var(--custom-border-radius);
    border: 1px solid var(--bs-border-color);
}

/* List groups */
.list-group-item {
    border-radius: 0;
}

.list-group-item:first-child {
    border-top-left-radius: var(--custom-border-radius);
    border-top-right-radius: var(--custom-border-radius);
}

.list-group-item:last-child {
    border-bottom-left-radius: var(--custom-border-radius);
    border-bottom-right-radius: var(--custom-border-radius);
}

/* Feather icon consistency */
[data-feather] {
    stroke-width: 2;
}

/* Alert improvements */
.alert {
    border-radius: var(--custom-border-radius);
}

.alert [data-feather] {
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: text-bottom;
}

/* Progress and loading states */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: var(--bs-border-radius) !important;
        margin-bottom: 0.25rem;
    }
    
    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Print styles for PDF mockup */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .btn {
        display: none;
    }
}

/* Accessibility improvements */
/* Subtle dark background block for text content previously using bg-light */
.small-text-block {
    background: rgba(255,255,255,0.05);
    color: var(--bs-body-color);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus improvements for keyboard navigation */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* High contrast improvements */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }
    
    .btn-outline-primary,
    .btn-outline-secondary,
    .btn-outline-danger,
    .btn-outline-warning,
    .btn-outline-info {
        border-width: 2px;
    }
}
