/* YouTube2TXT Main Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --border-radius: 0.35rem;
    --transition: all 0.15s ease-in-out;
}

/* Global Styles */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #212529;
}

/* Light theme navigation */
.navbar-light .navbar-brand {
    color: #007bff !important;
    font-weight: 600;
}

.navbar-light .navbar-nav .nav-link {
    color: #495057 !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #007bff !important;
}

.bg-gradient-primary {
    background: linear-gradient(180deg, #007bff 10%, #0056b3 100%);
    background-size: cover;
}

/* Light theme cards */
.card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Update progress bars for light theme */
.progress {
    background-color: #e9ecef;
}

/* Alert styling for light theme */
.alert {
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid #e3e6f0;
    border-radius: var(--border-radius);
}

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

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    border-top-left-radius: calc(var(--border-radius) - 1px);
    border-top-right-radius: calc(var(--border-radius) - 1px);
}

/* Border left variants */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color) !important;
}

.border-left-danger {
    border-left: 0.25rem solid var(--danger-color) !important;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-circle {
    border-radius: 100%;
    height: 2.5rem;
    width: 2.5rem;
}

.btn-circle.btn-sm {
    height: 1.8rem;
    width: 1.8rem;
}

.btn-circle.btn-lg {
    height: 3.5rem;
    width: 3.5rem;
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border-color: #d1d3e2;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-control-user {
    border-radius: 10rem;
    padding: 1.5rem 1rem;
    border-color: #d1d3e2;
    font-size: 0.8rem;
}

/* Custom File Upload Styles */
.drop-zone {
    border: 2px dashed #d1d3e2;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
}

.drop-zone.dragover {
    border-style: solid;
}

.drop-zone-content h5 {
    margin-bottom: 0.5rem;
    color: #5a5c69;
}

.drop-zone-content p {
    margin-bottom: 1rem;
    color: #858796;
}

/* File Cards */
.file-card {
    transition: var(--transition);
    cursor: pointer;
}

.file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.file-icon {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-info div {
    margin-bottom: 0.2rem;
}

/* Task Cards */
.task-card {
    transition: var(--transition);
}

.task-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 1rem 0 rgba(58, 59, 69, 0.15);
}

/* Progress Bars */
.progress {
    border-radius: var(--border-radius);
    height: 1rem;
}

.progress-sm {
    height: 0.5rem;
}

.progress-lg {
    height: 1.5rem;
}

/* Badges */
.badge {
    font-size: 0.65em;
    font-weight: 700;
    border-radius: var(--border-radius);
}

.badge-pill {
    border-radius: 10rem;
}

/* Tables */
.table {
    color: #858796;
}

.table th {
    border-top: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    padding: 0.75rem;
    color: #6e707e;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    color: #858796;
    background-color: #f8f9fc;
}

/* Step Indicators */
.step-indicator {
    position: relative;
    padding: 1rem;
    transition: var(--transition);
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #e3e6f0;
    color: #5a5c69;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 0.5rem;
    transition: var(--transition);
}

.step-indicator.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step-indicator.completed .step-number {
    background-color: var(--success-color);
    color: white;
}

.step-indicator.active h5 {
    color: var(--primary-color);
    font-weight: bold;
}

.step-indicator.completed h5 {
    color: var(--success-color);
    font-weight: bold;
}

/* Method Selection Cards */
.transcription-method {
    padding: 2rem 1rem;
    border: 2px solid #e3e6f0;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.transcription-method:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.transcription-method.active {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
}

.method-icon {
    margin-bottom: 1rem;
}

/* WebSocket Status */
#connection-status {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

#connection-status.connected {
    background-color: var(--success-color);
}

#connection-status.disconnected {
    background-color: var(--danger-color);
}

#connection-status.connecting {
    background-color: var(--warning-color);
}

/* Batch Job Cards */
.batch-job-card {
    transition: var(--transition);
    border-left: 4px solid #e3e6f0;
}

.batch-job-card:hover {
    box-shadow: var(--shadow);
    border-left-color: var(--primary-color);
}

.batch-job-card[data-status="running"] {
    border-left-color: var(--info-color);
}

.batch-job-card[data-status="completed"] {
    border-left-color: var(--success-color);
}

.batch-job-card[data-status="failed"] {
    border-left-color: var(--danger-color);
}

/* Task Status Rows */
.table tbody tr.completed {
    background-color: rgba(40, 167, 69, 0.05);
}

.table tbody tr.running {
    background-color: rgba(23, 162, 184, 0.05);
}

.table tbody tr.failed {
    background-color: rgba(220, 53, 69, 0.05);
}

.table tbody tr.pending {
    background-color: rgba(255, 193, 7, 0.05);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: 1px solid transparent;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 0.75rem;
}

/* Modals */
.modal-content {
    border: 0;
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e3e6f0;
    padding: 1rem 1.5rem;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #e3e6f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .transcription-method {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .method-icon .fa-3x {
        font-size: 2rem !important;
    }
    
    .drop-zone {
        padding: 2rem 1rem;
    }
    
    .step-number {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
    
    .transcription-method h5 {
        font-size: 1rem;
    }
    
    .transcription-method p {
        font-size: 0.875rem;
    }
    
    .btn-group {
        flex-wrap: wrap;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
}

/* Force light theme always - ignore system dark mode preference */
body {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.card {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        transform: translate3d(0, -100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Utility animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-in-down {
    animation: slideInDown 0.3s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

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

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    border-radius: inherit;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

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

/* Text utilities */
.text-xs {
    font-size: 0.75rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-900 {
    color: #3a3b45 !important;
}

/* Spacing utilities */
.py-8 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* YouTube2TXT Application Specific Styles */

/* Dashboard specific styles */
.dashboard-stat-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.dashboard-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #5a5c69;
}

.dashboard-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #858796;
}

/* Task status specific styles */
.task-row {
    transition: all 0.2s ease;
}

.task-row:hover {
    background-color: rgba(78, 115, 223, 0.02) !important;
    transform: translateX(3px);
}

.task-row .status-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    border-radius: 1rem;
    font-weight: 600;
}

.task-row .progress {
    height: 6px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.05);
}

.task-row .progress-bar {
    border-radius: 3px;
    transition: width 0.3s ease;
}

.task-row .progress-text {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* File management styles */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.file-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid #e3e6f0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4e73df, #224abe);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.file-item:hover::before {
    transform: scaleX(1);
}

.file-item:hover {
    border-color: #4e73df;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 2rem rgba(78, 115, 223, 0.15);
}

.file-item.selected {
    border-color: #4e73df;
    background: rgba(78, 115, 223, 0.05);
}

.file-item .file-type-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.file-item .file-name {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.5rem;
    word-break: break-word;
    line-height: 1.3;
}

.file-item .file-metadata {
    font-size: 0.8rem;
    color: #858796;
    margin-bottom: 0.25rem;
}

.file-item .file-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-item:hover .file-actions {
    opacity: 1;
}

/* Batch processing styles */
.batch-job {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #e3e6f0;
    transition: all 0.3s ease;
}

.batch-job:hover {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
    border-left-color: #4e73df;
}

.batch-job[data-status="running"] {
    border-left-color: #17a2b8;
    background: rgba(23, 162, 184, 0.02);
}

.batch-job[data-status="completed"] {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.02);
}

.batch-job[data-status="failed"] {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.02);
}

.batch-progress-container {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
}

.batch-file-progress {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #e3e6f0;
    transition: all 0.2s ease;
}

.batch-file-progress.processing {
    border-left-color: #17a2b8;
    background: rgba(23, 162, 184, 0.05);
}

.batch-file-progress.completed {
    border-left-color: #28a745;
}

.batch-file-progress.failed {
    border-left-color: #dc3545;
}

/* Settings page styles */
.settings-section {
    margin-bottom: 2rem;
}

.settings-group {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e3e6f0;
}

.settings-group h6 {
    color: #4e73df;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e3e6f0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(227, 230, 240, 0.5);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    flex: 1;
    margin-right: 1rem;
}

.setting-label .setting-title {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.25rem;
}

.setting-label .setting-description {
    font-size: 0.85rem;
    color: #858796;
    line-height: 1.4;
}

/* Profile page enhancements */
.profile-section {
    margin-bottom: 2rem;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.profile-avatar-large::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(from 0deg, transparent 0deg, transparent 45deg, rgba(255,255,255,0.1) 45deg, rgba(255,255,255,0.1) 90deg);
    animation: rotate 20s linear infinite;
}

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

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.profile-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(78, 115, 223, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(78, 115, 223, 0.1);
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4e73df;
    display: block;
    margin-bottom: 0.25rem;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: #858796;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Alert enhancements */
.alert-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    max-width: 400px;
    width: 100%;
}

.alert-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid;
    animation: slideInRight 0.3s ease-out;
}

.alert-custom.alert-success {
    border-left-color: #28a745;
    color: #155724;
}

.alert-custom.alert-info {
    border-left-color: #17a2b8;
    color: #0c5460;
}

.alert-custom.alert-warning {
    border-left-color: #ffc107;
    color: #856404;
}

.alert-custom.alert-danger {
    border-left-color: #dc3545;
    color: #721c24;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* WebSocket connection indicator enhancements */
#connection-status {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#connection-status.bg-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* System health indicators */
.health-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0.125rem;
}

.health-indicator.healthy {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.health-indicator.degraded {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.health-indicator.unhealthy {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.health-indicator i {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

/* Resource usage bars */
.resource-usage {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.resource-label {
    min-width: 80px;
    font-size: 0.8rem;
    color: #858796;
    font-weight: 600;
}

.resource-bar {
    flex: 1;
    height: 8px;
    background: #e3e6f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 0.5rem;
    position: relative;
}

.resource-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #28a745, #ffc107, #dc3545);
    background-size: 300% 100%;
}

.resource-fill[data-usage="low"] {
    background-position: 0% 50%;
}

.resource-fill[data-usage="medium"] {
    background-position: 50% 50%;
}

.resource-fill[data-usage="high"] {
    background-position: 100% 50%;
}

.resource-value {
    min-width: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5a5c69;
    text-align: right;
}

/* Quick action buttons */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 2px solid #e3e6f0;
    border-radius: 10px;
    text-decoration: none;
    color: #5a5c69;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4e73df, #224abe);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quick-action:hover::before {
    transform: scaleX(1);
}

.quick-action:hover {
    border-color: #4e73df;
    color: #4e73df;
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 2rem rgba(78, 115, 223, 0.15);
    text-decoration: none;
}

.quick-action i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quick-action span {
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
}

/* Enhanced mobile responsiveness */
@media (max-width: 992px) {
    .file-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .dashboard-stat-value {
        font-size: 1.5rem;
    }
    
    .file-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .resource-usage {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .resource-bar {
        width: 100%;
        margin: 0;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
        border-color: black;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .alert-custom {
        border-left-width: 6px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .alert-container {
        display: none !important;
    }
    
    .card {
        border: 1px solid black !important;
        box-shadow: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
}