.file-item:last-child {
    border-bottom: none !important;
}

.navbar {
    padding: 1rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

#upload-status {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9em;
}

#upload-status div {
    margin-bottom: 0.25rem;
}

.progress {
    height: 0.5rem;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

.btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.btn-group .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
}

.btn-group .btn i {
    font-size: 0.875rem;
}

.table td.text-center {
    vertical-align: middle;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.download-btn i {
    font-size: 0.9em;
}

/* Hover effects */
.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.2);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f8f9fa;
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

nav {
    background-color: #333;
    padding: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 1rem;
}

.flash {
    padding: 1rem;
    margin: 1rem 0;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

main {
    padding: 2rem;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.auth-form form div {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.auth-form input {
    width: 100%;
    padding: 0.5rem;
}

button {
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.5rem;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f8f9fa;
}

/* Custom styles on top of Bootstrap */
.navbar-brand {
    font-weight: bold;
}

.card {
    margin-bottom: 1.5rem;
}

.card-header {
    font-weight: 500;
}

.table th {
    font-weight: 600;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.file-preview {
    max-height: 300px;
    overflow-y: auto;
}

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

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

/* Hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.25rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Add these styles to your existing CSS */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

.badge.bg-warning {
    color: #000;
}

.table td .badge {
    font-size: 0.875rem;
}

/* File details page */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.user-select-all {
    user-select: all;
}

/* Action buttons in details page */
.d-grid.gap-2 {
    row-gap: 0.5rem !important;
}

.d-grid.gap-2 .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

/* Responsive adjustments for details page */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-header .btn {
        width: 100%;
    }
    
    .table th {
        width: auto !important;
    }
}