/* Custom styles for AB2M Fileshare */

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

/* Ensure footer stays at bottom */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* File browser improvements */
.table-hover tbody tr:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover td a {
    text-decoration: none;
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

/* Progress bar text */
.progress-bar {
    font-weight: 500;
}

/* File icons */
.bi-folder-fill {
    font-size: 1.2rem;
}

.bi-file-earmark {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Drag and drop area */
.drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #adb5bd;
}

.drop-zone.dragover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
    transform: scale(1.02);
}

.drop-zone i {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.drop-zone.dragover i {
    color: var(--primary-color);
}

/* Quota visualization */
.quota-info {
    min-width: 250px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

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

/* Card shadows */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
}

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

/* Loading spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* File preview modal (future) */
.file-preview-modal .modal-dialog {
    max-width: 90%;
}

.file-preview-modal .modal-body {
    max-height: 80vh;
    overflow: auto;
}