body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.card {
    border: none;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.file-card {
    cursor: pointer;
    height: 100%;
}

.file-card .card-body {
    padding: 1rem;
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.file-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.file-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    word-break: break-word;
    min-height: 2.5rem;
}

.file-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

.badge-file-type {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

#fileModalBody {
    max-height: 70vh;
}

#fileModalBody pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#fileModalBody img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-group .btn {
    font-size: 0.85rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .file-image {
        height: 150px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-card {
    animation: fadeIn 0.3s ease-in;
}

/* Table styles */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #495057;
    font-weight: 600;
    font-size: 0.9rem;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f8f9fa !important;
}

.thumbnail-preview {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid #dee2e6;
    transition: border-color 0.2s, transform 0.2s;
}

.thumbnail-preview:hover {
    border-color: #0d6efd;
    transform: scale(1.05);
}

.file-action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    margin: 0.1rem;
}

.interval-time {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.breadcrumb {
    background-color: #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.file-available {
    color: #198754;
}

.file-missing {
    color: #6c757d;
}
