/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.show {
    visibility: visible;
    opacity: 1;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 15px;
    text-align: center;
}

/* General Styles */
body {
    background-color: #f5f8fa;
    padding: 20px 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 6px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
}

.form-check-input {
    cursor: pointer;
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 8px 16px;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 14px;
}

/* Month Selection */
.month-checkbox {
    margin-right: 5px;
}

/* Available Downloads Table */
.table-responsive {
    border-radius: 6px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.table-primary {
    background-color: #e6f0ff;
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

/* Ensure consistent cell padding and alignment */
.table td, .table th {
    padding: 0.75rem;
    vertical-align: middle;
}

/* File checkboxes */
.file-checkbox {
    width: 18px;
    height: 18px;
}

#checkAll {
    width: 18px;
    height: 18px;
}

/* Make sure action buttons are the same size */
.btn-success.btn-sm {
    width: 34px;
    height: 34px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Table headers with fixed width */
.table th.text-center {
    text-align: center;
}

/* Consistent spacing */
.container + .container {
    margin-top: 20px;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

h2.text-center {
    margin-bottom: 1.5rem;
}

/* Consistent card styling */
.card-header {
    background-color: #f8f9fa !important;
    padding: 0.75rem 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .table th, .table td {
        padding: 0.5rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
}

/* Log message styling */
.log-message {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.log-success {
    background-color: #d4edda;
    color: #155724;
}

.log-error {
    background-color: #f8d7da;
    color: #721c24;
}

.log-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.log-divider {
    border-bottom: 1px solid #dee2e6;
    margin: 10px 0;
}

/* Status icons */
.bi {
    vertical-align: -0.125em;
}

.table .bi-download {
    font-size: 16px;
} 