/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #2d3436;
    background: linear-gradient(135deg, #f5f7fa 0%, #e3eeff 100%);
    min-height: 100vh;
}

.container {
    width: 80%;
    max-width: 1200px; /* Set a max width for better readability */
    margin: 0 auto;
    padding: 2rem;
    background: white; /* Added background for contrast */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Modern Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(120deg, #FFCD00 0%, #FDB813 100%); /* Australian Gold gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #FFCD00, #FDB813);
    border-radius: 2px;
}

/* Specific styling for the main calculator header */
.header-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(120deg, #FFCD00 0%, #FDB813 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    line-height: 1.2;
    padding: 0.5rem 0;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

/* Enhanced text container for better visibility */
.header-text-container {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem 3rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

/* Subtitle enhancement */
.header-subtitle {
    font-size: 1.4rem;
    color: #ffffff;
    margin-top: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Animation for the header */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-title {
        font-size: 2.2rem;
    }

    .header-subtitle {
        font-size: 1.1rem;
    }

    .header-text-container {
        padding: 1.5rem 2rem;
    }
}

/* Add hover effect for interactive feel */
.header-text-container:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Enhanced container styling */
.container h1 {
    position: relative;
    padding: 1.5rem 0;
    margin: 2rem 0;
    text-align: center;
}

.container h1::before,
.container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    border-radius: 2px;
}

.container h1::before {
    width: 200px;
    background: linear-gradient(90deg, transparent, #FFCD00, transparent);
    bottom: 0;
}

.container h1::after {
    width: 100px;
    background: linear-gradient(90deg, #FFCD00, #FDB813);
    bottom: 0;
}

/* Feature Highlights */

/* Prediction Form Section */
.predictions-section {
    background: #f8f9fa; /* Light background for the form */
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3436;
}

select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

select:focus {
    border-color: #74b9ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.2);
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.3);
}

/* Results Section */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
}

th, td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2d3436;
}

tr:last-child td {
    border-bottom: none;
}

/* Confidence Level Styling */
td:last-child {
    font-weight: 600;
}

/* Info Section */

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .predictions-section {
        padding: 1.5rem;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading State */

/* Disclaimer */
.disclaimer {
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.4;
}

.disclaimer strong {
    color: #444;
}

/* Add after the body styles and before .container */

.nav-container {
    width: 80%;
    max-width: none;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.admin-link {
    text-decoration: none;
    color: #0984e3;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.admin-link:hover {
    background: #0984e3;
    color: white;
}

/* Import Section Styles */
.import-instructions {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.import-instructions h3 {
    color: #2d3436;
    margin-bottom: 1rem;
}

.import-instructions ul {
    list-style: none;
    padding: 0;
}

.import-instructions li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.import-instructions li::before {
    content: '📄';
    position: absolute;
    left: 0;
}

/* File input styling */
input[type="file"] {
    background: white;
    padding: 1rem;
    border: 2px dashed #e9ecef;
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #74b9ff;
}

/* Preview Section Styles */

.cancel-btn {
    background: #fc8181;
}

/* Data View Styles */
.data-view-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 200px;
}

/* Hide loading initially */

/* Show loading when data is being fetched */

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

.queue-table th,
.queue-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.progress-bar {
    background: #e9ecef;
    height: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, #74b9ff, #0984e3);
    border-radius: 10px;
}

.history-btn {
    background: #0984e3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-btn:hover {
    background: #074e83;
}

/* Chart Styles */
.graph-section {
    margin-top: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-container {
    width: 100%;
    height: 400px;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-container canvas {
    max-width: 100%;
    max-height: 100%;
    width: 100% !important;
    height: 100% !important;
}

.full-width-card {
    width: 100%;
    margin: 20px 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.full-width-card .stat-body {
    padding: 20px;
    height: 400px;
    position: relative;
}

/* Add this to the existing .queue-data class */
.queue-data {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Debug Section Styles */

/* Import Preview Styles */
.import-preview-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 1rem 0 3rem 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid #4299e1;
}

.import-preview-section h2 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.import-preview-section h2::before {
    content: '🔍';
}

.import-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.proceed-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.proceed-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(56, 161, 105, 0.3);
}

.summary-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-item label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.validation-warnings {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff5f5;
    border-left: 4px solid #fc8181;
    border-radius: 4px;
}

.validation-warnings h4 {
    color: #e53e3e;
    margin-bottom: 0.5rem;
}

.validation-warnings ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.validation-warnings li {
    padding: 0.5rem 0;
    color: #2d3748;
}

.cancel-btn {
    background: #fc8181;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #e53e3e;
    transform: translateY(-1px);
}

/* Message Styles */
.message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #2d3436;
    white-space: pre-line;
}

/* Update nav-container button styling */

/* Add these styles to your existing CSS */
.container {
    width: 80%;
    max-width: none;
    margin: 0 auto;
    padding: 2rem;
}

.admin-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-section h2 {
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.import-instructions {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.upload-form {
    display: grid;
    gap: 1.5rem;
}

.upload-form .form-group {
    display: grid;
    gap: 0.5rem;
}

#visa_type_select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

#visa_type_select:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.upload-form button {
    justify-self: start;
}

.primary-btn {
    background: #4299e1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.primary-btn:hover {
    background: #3182ce;
}

/* Sequential numbering for sections */
.admin-section h2::before {
    background: #4299e1;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-size: 0.9em;
}

/* Tab Styles */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1px;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #2d3748;
}

.tab-btn.active {
    color: #4299e1;
    border-bottom-color: #4299e1;
}

.tab-content {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ensure import preview always shows on top */
.import-preview-section {
    position: relative;
    z-index: 10;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

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

.proceed-btn:disabled,
.cancel-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.summary-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-item label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.stat-item span {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Add to your existing select styles */
select option:disabled {
    color: #a0aec0;
    font-style: italic;
    background-color: #f7fafc;
}

/* Add hover effect for available options */
select option:not(:disabled):hover {
    background-color: #ebf8ff;
}

/* Style the select when showing disabled option */
select:focus option:disabled {
    background-color: #f7fafc;
}

.stat-item.highlight {
    grid-column: 1 / -1;
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    text-align: center;
}

.stat-item.highlight .large-number {
    font-size: 2rem;
    color: #0369a1;
    font-weight: 700;
}

.no-data {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
    background: #f8fafc;
    border-radius: 8px;
}

.queue-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Remove the queue breakdown styles */
.queue-details {
    display: none;
}

/* Add responsive adjustments */
@media (max-width: 1600px) {
    .container, .nav-container {
        width: 90%;
    }
}

@media (max-width: 1200px) {
    .container, .nav-container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .container, .nav-container {
        width: 100%;
        padding: 1rem;
    }
}

.visa-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.visa-tab-content {
    display: none;
}

.visa-summary-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

/* Update existing styles */
.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.stat-item.highlight {
    width: 100%;
    text-align: center;
}

/* Update the existing .main-tabs styles */
.main-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1px;
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    white-space: nowrap; /* Prevent tab text from wrapping */
}

/* Hide the scrollbar but keep functionality */
.main-tabs::-webkit-scrollbar {
    display: none;
}

/* Update the tab button styles */
.main-tab-btn {
    padding: 1rem 1.5rem; /* Slightly reduced padding */
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem; /* Slightly smaller font */
    font-weight: 500;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent buttons from shrinking */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .main-tabs {
        margin: 1rem 0;
        padding: 0 0.5rem; /* Add some horizontal padding */
    }

    .main-tab-btn {
        padding: 0.75rem 1rem; /* Further reduce padding on mobile */
        font-size: 0.9rem; /* Slightly smaller font on mobile */
    }
}

/* Add a subtle indicator for scrollable tabs */
@media (max-width: 768px) {
    .main-tabs::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
        pointer-events: none;
    }
}

.main-tab-btn:hover {
    color: #2d3748;
}

.main-tab-btn.active {
    color: #4299e1;
    border-bottom-color: #4299e1;
}

.main-tab-content {
    display: none;
}

.main-tab-content.active {
    display: block;
}

.date-select:not(:disabled):hover {
    border-color: #4299e1;
}

.current-allocations {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Update the grid layout to accommodate more boxes */

.no-data {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 1rem;
}

/* Additional Styles for Better UX */

.date-picker-group {
    margin-bottom: 2rem;
}

.date-inputs {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.date-input {
    flex: 1;
}

.date-input label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.date-input select {
    width: 100%;
}

@media (max-width: 768px) {
    .date-inputs {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Tab Styles */
.main-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1px;
}

.main-tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.main-tab-btn:hover {
    color: #2d3748;
}

.main-tab-btn.active {
    color: #4299e1;
    border-bottom-color: #4299e1;
}

.main-tab-content {
    display: none;
}

.main-tab-content.active {
    display: block;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-indicator p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Breadcrumb styles */
.breadcrumb {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb span {
    font-weight: 500;
    color: #1e293b;
}

/* Ensure breadcrumbs are visible when stats tab is active */

/* Stats tab content */
#stats {
    padding: 20px;
}

/* Loading indicator styles */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Spinner animation */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Stats Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 1rem; /* Consistent spacing between cards */
    margin: 1.5rem auto; /* Center the grid */
    max-width: 1200px; /* Limit the width of the grid */
    padding: 0 1rem; /* Add padding for smaller screens */
}

/* Adjust grid layout for larger screens */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr); /* Adjust the number of columns as needed */
    }
}

/* Stat Card Styles with a card effect with a corner top right */
.stat-card {
    
    background: #f8fafc;
    border-radius: 8px 8px 8px 0; /* Modified to have a corner effect on top right */
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    width: 100%;
    margin: 0;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.stat-header {
    margin-bottom: 1rem;
}

.stat-header h3 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-date {
    color: #64748b;
    font-size: 0.9rem;
}

.stat-body {
    text-align: center;
    padding: 1rem 0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #475569;
    font-size: 1rem;
    font-weight: 500;
}

.stat-footer {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.stat-note {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Processing list styles */
.processing-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.processing-month {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.processing-month:hover {
    background: #e2e8f0;
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.month-label {
    font-weight: 600;
    color: #1e293b;
}

.processed-count {
    font-weight: 700;
    color: #0369a1;
    font-size: 1.1rem;
}

.average-rate {
    font-weight: 600;
    color: #0369a1;
    font-size: 1rem;
    margin-left: 0.5rem;
}

/* Scrollbar styling */
.processing-list::-webkit-scrollbar {
    width: 6px;
}

.processing-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.processing-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.processing-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }
}

.ratio-breakdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.ratio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ratio-item .count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0369a1;
}

.ratio-item .label {
    font-size: 0.9rem;
    color: #64748b;
}

.usage-percentage {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.prediction-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 4px;
}

.detail-item .label {
    color: #64748b;
}

.detail-item .value {
    font-weight: 600;
    color: #0369a1;
}

.step-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 4px;
}

.step-item .label {
    color: #64748b;
    font-size: 0.9rem;
}

.step-item .value {
    font-weight: 600;
    color: #0369a1;
}

.prediction-highlight {
    background: linear-gradient(135deg, #bbc7fe, #d0d7ff); /* Darker gradient */
    border: 3px solid #818cf8;
    box-shadow: 
        rgba(50, 50, 93, 0.35) 0px 15px 35px -5px,
        rgba(0, 0, 0, 0.4) 0px 10px 20px -8px;
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    transform-origin: center;
    animation: card-pop 0.5s ease-out;
}

/* Add celebration mode styles */

/* Update confetti canvas positioning */

.countdown-weeks {
    font-size: 1.4em;
    color: #15803d;
    font-weight: 600;
    margin: 1rem 0;
    animation: pulse 2s infinite;
}

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

.percentile-dates {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.percentile-date {
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #6ee7b7;
}

.percentile-date.recommended {
    background: #059669;
    color: white;
    border: none;
}

.percentile-date.recommended .date-note {
    color: rgba(255, 255, 255, 0.9);
}

.percentile-date .date-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.percentile-date .date-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.percentile-date .date-note {
    font-size: 0.85rem;
    color: #065f46;
}

.weekends {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.weekends-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #059669;
    line-height: 1;
    animation: bounce 2s infinite;
}

.weekends-label {
    font-size: 0.9rem;
    color: #065f46;
    font-weight: 500;
}

.percentile-date.optimistic .date-value {
    color: #0369a1;
}

.percentile-date.latest .date-value {
    color: #dc2626;
}

/* Update for celebration mode */

.planning-message {
    background: #fff7ed;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: left;
}

.planning-message .detail-item {
    display: block;  /* Changed from flex to block */
    padding: 0.75rem 0;
    border-bottom: 1px solid #fed7aa;
}

.planning-message .detail-item .label {
    display: block;
    font-weight: 600;
    color: #9a3412;
    margin-bottom: 0.25rem;
}

.planning-message .detail-item .value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.next-fy-explanation ul {
    margin: 0.5rem 0 0 1.25rem;
    list-style-type: disc;
}

.next-fy-explanation li {
    margin-bottom: 0.5rem;
}

.next-fy-explanation li:last-child {
    margin-bottom: 0;
}

.weekends-note {
    font-size: 0.9em;
    color: #15803d;
    margin-top: 0.5rem;
    font-style: italic;
    animation: fadeIn 0.5s ease-in;
}

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

/* Header Styles */
.header-container {
    position: relative;
    height: 45vh;
    overflow: hidden;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.header-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Add active state for slides */
.header-slide.active {
    opacity: 1;
}

/* Update header content styles to ensure text is visible over images */
.header-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

/* Update text container styles for better visibility */
.header-text-container {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem 3rem;
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-subtitle {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Australian Color Theme */
:root {
    --aus-green: #00843D;
    --aus-gold: #FFCD00;
    --aus-blue: #0033A0;
    --aus-ochre: #C15B0E;
    --neutral-light: #F5F7FA;
}

/* Card Styles */
.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Admin Login Form Styles */

/* Add these footer styles */
.footer {
    background: #f8fafc;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 1rem;
}

.footer-attribution {
    color: #64748b;
    font-size: 0.9rem;
    text-align: left;
}

.disclaimer {
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
    padding: 0 1rem;
}

.disclaimer strong {
    color: #475569;
}

.footer-links {
    text-align: right;
}

.footer-links .admin-link {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links .admin-link:hover {
    color: #2c5282;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-attribution, .footer-links {
        text-align: center;
    }
}

/* Site Banner Styles - Enhanced */
.site-banner {
    background: linear-gradient(120deg, #FFCD00 0%, #FDB813 100%); /* Australian Gold gradient */
    padding: 0.75rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-banner-content {
    position: relative;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px; /* Add consistent spacing between elements */
    padding: 0.5rem 1rem;
}

.site-name {
    color: white;
    font-size: 1.2rem; /* Increased font size for better visibility */
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.8px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.last-updated-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #1a365d;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap; /* Prevent wrapping */
}

.last-updated-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) translateX(-2px);
}

@media (max-width: 768px) {
    .site-banner-content {
        padding: 0.5rem;
    }

    .last-updated-link {
        position: static;
        transform: none;
        margin-left: auto;
        font-size: 0.8rem;
    }
}

/* Adjust header container height */
.header-container {
    position: relative;
    height: 45vh; /* Reduced from 60vh */
    overflow: hidden;
    margin-bottom: 2rem;
}

.header-content {
    padding: 1.5rem;
}

.header-title {
    font-size: 2.5rem; /* Slightly reduced */
    margin-bottom: 0.75rem;
}

.header-subtitle {
    font-size: 1.3rem; /* Slightly reduced */
    max-width: 700px;
}

@media (max-width: 768px) {
    .site-banner-content {
        width: 95%;
    }
    
    .header-container {
        height: 40vh;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
}

/* WhatsApp Share Button Styles */
.whatsapp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    width: fit-content;
    margin: 10px auto;
}

.whatsapp-share-btn:hover {
    background-color: #128C7E;
    color: white;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .whatsapp-share-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .whatsapp-icon {
        width: 16px;
        height: 16px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
}

.close:hover {
    color: #1e293b;
}

/* Allocation Modal Styles */
.allocation-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.allocations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Add these styles to standardize buttons and visa type management */
.visa-management {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 1rem;
}

.add-visa-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.add-visa-form .form-group {
    margin-bottom: 1.5rem;
}

.add-visa-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 500;
}

.add-visa-form input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s;
}

.add-visa-form input[type="text"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* Standardized button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Visa types table styling */
.visa-types-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.visa-types-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
}

.visa-types-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.visa-types-table tr:last-child td {
    border-bottom: none;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons button {
    padding: 0.5rem 1rem;
}

/* Modal loading state */
.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 1rem;
}

.modal-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.modal-loading-text {
    color: #64748b;
    font-size: 1.1rem;
}

/* Hide content while loading */

/* Add these styles for the Movement column */

.step-item .explanation {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    font-style: italic;
    line-height: 1.4;
}

.spacer {
    width: 100%;
    height: 2rem;
    grid-column: 1 / -1;  /* Spans all columns */
}

.calculation-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.calculation-details h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.calculation-details .step-details {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.step-item .label {
    color: #475569;
    font-weight: 500;
}

.step-item .value {
    color: #1e293b;
    font-weight: 600;
}

.next-fy-explanation {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fffbeb;
    border-left: 4px solid #d97706;
    border-radius: 0 6px 6px 0;
    color: #92400e;
    font-size: 0.95rem;
    line-height: 1.5;
}

.planning-message .detail-item .explanation {
    display: block;
    font-size: 0.9rem;
    color: #78716c;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Overdue Alert Card Styling */

.action-recommendation {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-steps {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.action-steps li {
    margin-bottom: 0.8rem;
    color: #444;
    line-height: 1.4;
}

.important-note {
    background-color: #fff9e6;
    padding: 1rem;
    border-left: 4px solid #ffd700;
    margin: 1rem 0;
    font-size: 0.95em;
    color: #555;
}

.processing-times-link {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.processing-times-link:hover {
    color: #004499;
}

.contact-button {
    display: inline-block;
    background-color: #e60000;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #cc0000;
    text-decoration: none;
}

.prediction-details .detail-item {
    background-color: #fff;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.prediction-details .label {
    color: #666;
    font-size: 0.9em;
}

.prediction-details .value {
    color: #333;
    font-weight: 600;
    font-size: 1.1em;
}

.imminent-grant {
    font-size: 1.4em;
    color: #15803d;
    font-weight: 600;
    margin-bottom: 0.75rem;
    animation: pulse 2s infinite;
}

.grant-explanation {
    color: #166534;
    line-height: 1.6;
    font-size: 1.1em;
    background: #f0fdf4;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #86efac;
    margin-top: 0.5rem;
}

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

/* New Planning Message Styles */
.planning-header {
    font-size: 1.4em;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 1rem;
}

.planning-explanation {
    font-size: 1.1em;
    line-height: 1.6;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.visa-cap-explanation {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #bae6fd;
}

.visa-cap-explanation h4 {
    color: #0369a1;
    font-size: 1.1em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.visa-cap-explanation ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.visa-cap-explanation li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #334155;
    line-height: 1.5;
}

.visa-cap-explanation li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0369a1;
    font-weight: bold;
}

.next-fy-explanation h4 {
    color: #92400e;
    font-size: 1.1em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.next-fy-explanation p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.next-fy-explanation ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.next-fy-explanation li {
    color: #92400e;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Methodology Comparison Styles */
.methodology-comparison {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.methodology-comparison h2 {
    text-align: center;
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.comparison-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card.traditional {
    border: 2px solid #e2e8f0;
}

.comparison-card.our-method {
    border: 2px solid #3b82f6;
    background: #f0f9ff;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    color: #1e293b;
    font-size: 1.3rem;
    margin: 0;
}

.method-icon {
    font-size: 2rem;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.card-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3b82f6;
}

.limitation-note, .advantage-note {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
}

.limitation-note {
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.advantage-note {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
}

/* Queue Visual Styles - Enhanced */

@keyframes pulse {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

.govt-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #3b82f6;
    transition: all 0.2s ease;
}

.govt-link:hover {
    color: #2563eb;
    border-bottom-style: solid;
}
.warm-message {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.warm-message p {
    color: #0369a1;
    margin: 0;
    line-height: 1.5;
}

.warning-message {
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.warning-message p {
    color: #9a3412;
    margin: 0;
    line-height: 1.5;
}

.warning-message ul {
    margin: 12px 0 12px 24px;
    padding: 0;
}

.warning-message li {
    color: #9a3412;
    margin-bottom: 8px;
    line-height: 1.4;
}

.warning-message li:last-child {
    margin-bottom: 0;
}

/* Add this CSS rule to ensure cards take up 1/3 of the screen */
.one-third-card {
    width: calc(33.333% - 0.67rem); /* Adjusted width accounting for smaller gap */
    margin: 0;
}

/* Clear floats after the cards */

/* Ensure the container for the cards is wide enough */
.stats-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Reduced spacing between cards */
}

/* Age Statistics Card Styles */

/* Responsive adjustments */

.full-width-card {
    grid-column: 1 / -1; /* Spans all columns */
    width: 100%;
    margin: 2rem 0;
}

.full-width-card .stat-body {
    padding: 20px;
    height: 400px;
    position: relative;
}

.full-width-card {
    grid-column: 1 / -1;
    width: 100%;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.full-width-card .stat-body {
    padding: 20px;
    height: 400px;
    position: relative;
}

/* Add this to ensure the canvas container is visible */
.stat-body {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.stat-card.full-width-card {
    grid-column: 1 / -1;
    width: 100%;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.stat-card.full-width-card .stat-body {
    height: 400px;
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-column .stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.stat-column .stat-row .label {
    color: #495057;
    font-weight: 500;
}

.stat-column .stat-row .value {
    color: #2c3e50;
    font-weight: 600;
}

/* Queue Age Relationship Card Styles */

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Base Card Styles */
.stat-card {
    background: #f8f9fb; /* Slightly darker background */
    border-radius: 16px;
    box-shadow: 
        rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
        rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        rgba(50, 50, 93, 0.35) 0px 15px 35px -5px,
        rgba(0, 0, 0, 0.4) 0px 10px 20px -8px;
}

/* Card Header Styles */
.stat-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(to right, #eef2f6, #e5eaf0); /* Darker gradient */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-header h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.stat-date {
    color: #64748b;
    font-size: 0.875rem;
}

/* Card Body Styles */
.stat-body {
    padding: 1.5rem;
    position: relative;
}

/* One Third Card Specific Styles */
.one-third-card {
    width: calc(33.333% - 0.67rem); /* Adjusted width accounting for smaller gap */
    margin: 0;
}

.one-third-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1rem 0;
    background: linear-gradient(45deg, #1e293b, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.one-third-card .stat-label {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Full Width Card Specific Styles */
.full-width-card {
    width: 100%;
    margin: 1.5rem 0;
    background: #f8f9fb; /* Match the base card background */
    box-shadow: 
        rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
        rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.full-width-card .stat-body {
    min-height: 400px;
    padding: 2rem;
}

/* Card Footer Styles */
.stat-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-note {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Card Content Styles */

/* Gradient Border Effect */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        #3b82f6 0%,
        #2563eb 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1400px) { /* Increased breakpoint */
    .one-third-card {
        width: calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .one-third-card {
        width: 100%;
    }
}

/* Special States */

/* Chart Container Styles */
.chart-container {
    background: #f8f9fb; /* Match the base card background */
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
        rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

/* Loading State */

/* Add these styles after the existing .stat-card styles */

.age-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
}

.age-comparison-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.age-comparison-item .label {
    color: #64748b;
    font-size: 0.9rem;
}

.age-comparison-item .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
}

.age-analysis {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.age-status {
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
}

.late-indicator {
    display: block;
    margin-top: 0.5rem;
    color: #ef4444;
    font-weight: 500;
}

.prediction-comparison {
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.age-analysis h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.age-analysis p {
    color: #334155;
    line-height: 1.6;
}

.age-analysis strong {
    color: #0f172a;
}

/* Add these styles for the disabled tab button */
.main-tab-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e2e8f0;
    color: #94a3b8;
}

.main-tab-btn:disabled:hover {
    background: #e2e8f0;
    color: #94a3b8;
    transform: none;
}

/* Grant Age Projection Card Styles */

/* Add these styles to style.css */
.grant-age-tables {
    display: flex;
    flex-direction: column; /* Stack tables vertically */
    gap: 2rem;
    padding: 1.5rem;
    width: 100%; /* Ensure full width */
}

.historical-data, .projected-data {
    width: 100%; /* Take full width */
    margin-bottom: 2rem; /* Add space between sections */
}

/* Section headers */
.historical-data h4, .projected-data h4 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid;
}

.historical-data h4 {
    border-bottom-color: #bae6fd; /* Blue for historical */
    background: #f0f9ff;
}

.projected-data h4 {
    border-bottom-color: #fcd34d; /* Gold for projections */
    background: #fef3c7;
}

/* Update table styles */
.grant-age-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0; /* Remove top margin since we have header */
    border-radius: 0 0 8px 8px; /* Round only bottom corners */
    overflow: hidden; /* Hide overflow for border radius */
}

/* Keep existing table header and cell styles */
.grant-age-table th {
    background-color: rgba(0, 0, 0, 0.02);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.grant-age-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Update table colors */
.real-data-table {
    background-color: #e0f7e0;
    border: 1px solid #bae6fd;
    border-top: none; /* Remove top border since header has bottom border */
}

.forecast-data-table {
    background-color: #ffe0b3;
    border: 1px solid #fcd34d;
    border-top: none;
}

/* Processing rate info */
.processing-rate {
    color: #64748b;
    font-style: italic;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grant-age-tables {
        padding: 1rem;
    }

    .historical-data h4, .projected-data h4 {
        font-size: 1.1rem;
        padding: 0.5rem 0.75rem;
    }

    .grant-age-table {
        font-size: 0.9rem;
    }

    .grant-age-table th,
    .grant-age-table td {
        padding: 0.5rem 0.75rem;
    }
}

/* Add legend for the tables */

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
}

/* Update the full-width card to properly scale with content */
.stat-card.full-width-card {
    height: auto !important; /* Override any fixed heights */
    min-height: auto;
    margin: 2rem 0;
}

/* Ensure the card body expands with content */
.stat-card.full-width-card .stat-body {
    height: auto !important; /* Override any fixed heights */
    min-height: auto;
    padding: 1.5rem;
}

/* Update grant age tables container */
.grant-age-tables {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    width: 100%;
    height: auto !important; /* Ensure it grows with content */
    min-height: auto;
    overflow: visible; /* Allow content to be visible */
}

/* Update individual table containers */
.historical-data, .projected-data {
    width: 100%;
    height: auto !important;
    margin-bottom: 2rem;
    overflow: visible;
}

/* Ensure tables themselves can grow */
.grant-age-table {
    width: 100%;
    height: auto !important;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    overflow: visible; /* Change from hidden to visible */
}

/* Update table wrapper if it exists */

.visa-selection-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.visa-selection-form h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

.date-inputs {
    display: flex;
    gap: 1rem;
}

.date-inputs select {
    flex: 1;
}

select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #0056b3;
}

.error-message {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.375rem;
    text-align: center;
}

.chart-container {
    min-height: 200px;
    position: relative;
}

/* Queue visualization styles */
.real-data-table {
    background-color: #e0f7e0;
}

.forecast-data-table {
    background-color: #ffe0b3;
}

.queue-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.your-position {
    background-color: rgba(255, 99, 132, 0.8);
}

.legend-color.other-applications {
    background-color: rgba(54, 162, 235, 0.5);
}

.visualization-container {
    display: grid;
    gap: 2rem;
    padding: 1rem;
    grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.chart-card h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.chart-container {
    height: 400px;
    position: relative;
    margin-bottom: 1rem;
}

.queue-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
}

.legend-color.your-position {
    background-color: rgba(255, 99, 132, 0.8);
}

.legend-color.other-applications {
    background-color: rgba(54, 162, 235, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .visualization-container {
        grid-template-columns: 1fr; /* One column on mobile/tablet */
    }
    
    .chart-card {
        margin-bottom: 1rem;
    }
}

/* Ensure charts are responsive */
.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 400px;
}

.chart-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0 1rem 0;
    padding: 0 1rem;
    line-height: 1.4;
    text-align: left;
}

.chart-card h3 {
    margin-bottom: 0.5rem;
}

/* Site banner modifications */
.site-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.last-updated-link {
    color: #1a365d;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap; /* Prevent wrapping */
}

.last-updated-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Changelog Modal Styles */
.changelog-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content.changelog-modal {
    margin: 10% auto !important;
    left: auto !important;
    transform: none !important;
    position: relative !important;
}

.changelog-modal h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.changelog-entries {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.changelog-entry {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.changelog-date {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.changelog-entry ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-entry li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
}

.changelog-entry li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #3b82f6;
}

/* Modal scrollbar styling */
.changelog-modal::-webkit-scrollbar {
    width: 6px;
}

.changelog-modal::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.changelog-modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.changelog-modal::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-banner-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .last-updated-link {
        font-size: 0.8rem;
    }

    .changelog-modal {
        width: 95%;
        margin: 5% auto;
    }
}

/* Queue Position Details Styles */

.prediction-details .explanation {
    font-size: 0.85em;
    color: #666;
    margin-top: 0.25rem;
    display: block;
}

/* Expected Grant Alert Styles */
.expected-grant-alert {
    border: 1px solid #e5e7eb;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    max-width: 800px;
    margin: 0 auto;
}

.expected-grant-alert .stat-header h3 {
    color: #374151;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.expected-grant-message {
    padding: 0.75rem;
}

.prediction-details {
    display: grid;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.analysis-message {
    margin: 1rem 0;
    color: #374151;
    line-height: 1.4;
}

.analysis-message p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.reasons-list {
    margin: 0.5rem 0;
    padding-left: 1rem;
}

.reasons-list li {
    padding: 0.25rem 0;
    padding-left: 1rem;
    font-size: 0.9rem;
}

.action-recommendation {
    margin-top: 1rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 6px;
}

.reassuring-text {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.action-steps {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
}

.action-steps li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.contact-info {
    margin-top: 1rem;
}

.contact-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.whatsapp-share-btn {
    padding: 0.5rem 1rem;
    margin: 0.75rem auto;
    font-size: 0.9rem;
}

/* Celebration Mode Styles */
.celebration-mode {
    background: linear-gradient(to bottom, #ecfdf5, #d1fae5);
    border: 1px solid #6ee7b7;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.celebration-mode .stat-header {
    background: linear-gradient(to right, #059669, #10b981);
    padding: 1.25rem;
    border-bottom: none;
}

.celebration-mode .stat-header h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.countdown-summary {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    text-align: center;
}

.queue-position, .time-remaining {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.position-number, .days-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #059669;
    line-height: 1;
}

.position-label, .days-label {
    font-size: 0.9rem;
    color: #065f46;
    font-weight: 500;
}

.grant-dates {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #6ee7b7;
}

.date-item.likely {
    background: #059669;
    color: white;
}

.date-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.date-value {
    font-weight: 600;
}

.document-alert {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
}

.document-alert h4 {
    color: #92400e;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.document-alert p {
    color: #92400e;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.document-alert p:last-child {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #fcd34d;
    font-style: italic;
}

.document-alert ul {
    list-style-type: none;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.document-alert li {
    color: #92400e;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    position: relative;
}

.document-alert li::before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: #92400e;
}

.preparation-checklist {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.preparation-checklist h4 {
    color: #059669;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.checklist-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #6ee7b7;
}

.checklist-item .emoji {
    font-size: 1.2rem;
}

.checklist-item .text {
    font-size: 0.9rem;
    color: #065f46;
}

.whatsapp-share-btn.celebration {
    background: #059669;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.whatsapp-share-btn.celebration:hover {
    background: #047857;
    transform: translateY(-2px);
}

/* Add some celebratory animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.position-number, .days-number {
    animation: bounce 2s infinite;
}

/* Calculation Details Styling */
.calculation-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.calculation-details h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.step-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.step-number {
    background: #0ea5e9;
    color: white;
    min-width: 28px;  /* Changed from width to min-width and increased slightly */
    height: 28px;     /* Increased to match min-width */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;   /* Prevent number from shrinking */
}

.step-title {
    color: #0f172a;
    font-weight: 500;
    flex-grow: 1;
}

.step-value {
    color: #0ea5e9;
    font-weight: 600;
    font-size: 1.1rem;
}

.step-explanation {
    color: #64748b;
    font-size: 0.9rem;
    margin-left: 2.5rem;
    line-height: 1.6;
}

.step-explanation ul {
    margin: 0;
    padding-left: 1.5rem;
}

.trend-word {
    font-weight: 600;
}

.trend-slower {
    color: #dc2626;
}

.trend-up .trend-word {
    color: #059669;
}

.trend-down .trend-word {
    color: #dc2626;
}

.step-note {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f0f9ff;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #0369a1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .calculation-details {
        padding: 1rem;
    }

    .step-header {
        flex-wrap: wrap;
    }

    .step-value {
        width: 100%;
        margin-left: 2.5rem;
        margin-top: 0.25rem;
    }
}

.processing-trend {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.trend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.trend-title {
    font-weight: 500;
    color: #0f172a;
}

.trend-value {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.trend-up {
    background: #dcfce7;
    color: #166534;
}

.trend-down {
    background: #fee2e2;
    color: #991b1b;
}

.trend-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
}

.trend-link:hover {
    text-decoration: underline;
}

/* Update existing step-item styles */
.step-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
}

.step-explanation {
    color: #64748b;
    font-size: 0.9rem;
    margin-left: 2.5rem;
    line-height: 1.6;
}

.step-explanation ul {
    margin: 0;
    padding-left: 1.5rem;
}

.trend-word {
    font-weight: 600;
}

.trend-slower {
    color: #dc2626;
}

.trend-up .trend-word {
    color: #059669;
}

.trend-down .trend-word {
    color: #dc2626;
}

/* Update the existing .main-tabs styles */
.main-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1px;
}

.main-tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Add responsive adjustments for mobile */
@media (max-width: 768px) {
    .main-tabs {
        flex-direction: column;
        gap: 0;
        margin: 1rem 0;
        border-bottom: none;
        background: #f8fafc;
        border-radius: 8px;
        padding: 0.5rem;
    }

    .main-tab-btn {
        width: 100%;
        text-align: left;
        padding: 1rem;
        border-bottom: none;
        border-left: 3px solid transparent;
        border-radius: 4px;
        font-size: 0.95rem;
        background: white;
        margin-bottom: 0.5rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .main-tab-btn:last-child {
        margin-bottom: 0;
    }

    .main-tab-btn.active {
        border-bottom: none;
        border-left: 3px solid #4299e1;
        background: #f0f9ff;
        color: #4299e1;
    }

    .main-tab-btn:hover {
        background: #f0f9ff;
    }

    /* Remove the gradient indicator since we're now vertical */
    .main-tabs::after {
        display: none;
    }
}

.step-values {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.step-value.current {
    color: #059669;
    font-size: 1.1rem;
    font-weight: 700;
}

.step-value.historical {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.update-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Update mobile responsiveness */
@media (max-width: 640px) {
    .step-values {
        width: 100%;
        text-align: left;
        margin-left: 2.5rem;
        margin-top: 0.25rem;
    }
    
    .step-value.historical {
        align-items: flex-start;
    }
}

/* Update the prediction highlight card to span full width */
.stat-card.prediction-highlight {
    grid-column: 1 / -1; /* Make it span all columns */
    width: 100%;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Keep the celebration mode styles but ensure they don't override the full width */
.celebration-mode {
    background: linear-gradient(to bottom, #ecfdf5, #d1fae5);
    border: 1px solid #6ee7b7;
    max-width: 800px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

/* When both classes are present, ensure full width behavior */
.stat-card.prediction-highlight.celebration-mode {
    grid-column: 1 / -1;
    width: 100%;
    margin: 2rem 0;
    max-width: none; /* Override the celebration-mode max-width */
}

/* Update the expected grant alert card to span full width */
.stat-card.prediction-highlight.expected-grant-alert {
    grid-column: 1 / -1;
    width: 100%;
    margin: 2rem 0;
    max-width: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Keep the existing expected grant alert styles while ensuring full width */
.expected-grant-alert {
    border: 1px solid #e5e7eb;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    max-width: 800px;
    margin: 2rem auto;
}

/* Overdue Alert Card Styling - Enhanced */
.stat-card.prediction-highlight.expected-grant-alert {
    background: linear-gradient(135deg, #fff1f2, #fecdd3);
    border: 2px solid #f87171;
    box-shadow: 
        rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
        rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.expected-grant-alert .stat-header {
    background: linear-gradient(to right, #dc2626, #ef4444);
    padding: 1.25rem;
    border-bottom: none;
}

.expected-grant-alert .stat-header h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.expected-grant-message {
    padding: 1.5rem;
}

.expected-grant-alert .prediction-details {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid #fca5a5;
}

.expected-grant-alert .detail-item {
    background: white;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border: 1px solid #fee2e2;
}

.expected-grant-alert .detail-item .label {
    color: #991b1b;
    font-weight: 500;
}

.expected-grant-alert .detail-item .value {
    color: #dc2626;
    font-weight: 600;
}

.expected-grant-alert .analysis-message {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #fca5a5;
}

.expected-grant-alert .reasons-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.expected-grant-alert .reasons-list li {
    color: #7f1d1d;
    padding: 0.5rem 0;
    position: relative;
}

.expected-grant-alert .reasons-list li::before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: #dc2626;
}

.expected-grant-alert .action-recommendation {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.expected-grant-alert .action-steps {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.expected-grant-alert .action-steps li {
    color: #9a3412;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.expected-grant-alert .action-steps li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #ea580c;
}

.expected-grant-alert .contact-button {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.expected-grant-alert .contact-button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.2);
}

.expected-grant-alert .processing-times-link {
    color: #dc2626;
    text-decoration: underline;
    font-weight: 500;
}

.expected-grant-alert .processing-times-link:hover {
    color: #b91c1c;
}

/* Feedback button */
.feedback-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    white-space: nowrap; /* Prevent wrapping */
}

.feedback-btn:hover {
    background-color: #2563eb;
}

/* Feedback Modal */
.feedback-modal {
    max-width: 500px;
    padding: 30px;
}

.feedback-input-group {
    margin-bottom: 20px;
}

.feedback-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.feedback-input-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.feedback-input-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-feedback-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-feedback-btn:hover {
    background-color: #2563eb;
}

/* Update site banner content styles */
.site-banner-content {
    position: relative;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px; /* Add consistent spacing between elements */
    padding: 0.5rem 1rem;
}

.site-name {
    order: 2; /* Move site name to middle */
    flex-grow: 1; /* Allow site name to take up remaining space */
}

.feedback-btn {
    order: 1; /* Move feedback button to left */
}

.last-updated-link {
    order: 3; /* Keep last-updated-link on right */
    position: static; /* Remove absolute positioning */
    transform: none; /* Remove transform */
}

@media (max-width: 768px) {
    .site-banner-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .site-name, .feedback-btn, .last-updated-link {
        order: unset; /* Reset order on mobile */
    }

    .last-updated-link {
        margin-left: auto;
        font-size: 0.8rem;
    }
}

/* Add these styles for feedback messages */
.feedback-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1100;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.feedback-message.success {
    background-color: #34d399;
    color: white;
    border: 1px solid #059669;
}

.feedback-message.error {
    background-color: #f87171;
    color: white;
    border: 1px solid #dc2626;
}

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

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

/* Feedback confirmation message */
.feedback-confirmation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-confirmation::before {
    content: '✓';
    color: #34d399;
    font-weight: bold;
    font-size: 1.1em;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

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

/* Queue Progress Chart specific styles */
.chart-card:has(#queueProgressChart) {
    padding: 2rem;
    margin-bottom: 2rem;
}

.chart-card:has(#queueProgressChart) .chart-container {
    height: 120px; /* Default height for desktop */
    margin: 2rem 0;
}

/* Add mobile-specific height adjustment */
@media (max-width: 768px) {
    .chart-card:has(#queueProgressChart) .chart-container {
        height: 180px; /* Increased height for mobile */
    }
}

.chart-card:has(#queueProgressChart) .chart-description {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.5;
}

/* Feedback Tab Styles */
.feedback-container {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feedback-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    transition: transform 0.2s ease;
}

.feedback-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.feedback-theme {
    font-weight: 600;
    color: #0056b3;
}

.feedback-date {
    color: #6c757d;
    font-size: 0.9em;
}

.feedback-text {
    color: #212529;
    line-height: 1.5;
    white-space: pre-wrap;
}

.no-feedback {
    text-align: center;
    color: #6c757d;
    padding: 40px;
    font-style: italic;
}

/* Add hover effect for feedback cards */
.feedback-card:hover .feedback-theme {
    color: #003d82;
}

.overdue-condition {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.overdue-condition h4 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.overdue-condition p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.status-explanation {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.overdue-explanation {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.overdue-explanation p {
    font-size: 1.1rem;
    color: #dc2626;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.overdue-conditions {
    display: grid;
    gap: 1rem;
}

.overdue-condition {
    background: white;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
    transition: transform 0.2s ease;
}

.overdue-condition:hover {
    transform: translateX(5px);
}

.overdue-condition h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc2626;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.overdue-condition h4::before {
    content: attr(data-number);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #fee2e2;
    border-radius: 50%;
    font-size: 0.9rem;
    color: #dc2626;
    font-weight: 600;
}

.overdue-condition p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 2rem;
}

.overdue-condition .highlight {
    font-weight: 600;
    color: #dc2626;
}

.trend-tooltip {
    display: inline-block;
    margin-left: 5px;
    cursor: help;
    color: #666;
    font-size: 14px;
}

.trend-tooltip:hover {
    color: #3b82f6;
}

/* Add tooltip styling */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #333;
    color: white;
    font-size: 13px;
    border-radius: 4px;
    white-space: normal;
    width: max-content;
    max-width: 300px;
    z-index: 100;
    line-height: 1.4;
}

/* Blog Styles */
.blog-content {
    margin-top: 2rem;
}

.blog-post {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.blog-post h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.blog-post p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-post ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-post li {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.blog-post li::before {
    content: "•";
    color: #4299e1;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

@media (max-width: 768px) {
    .blog-post {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .blog-post h2 {
        font-size: 1.3rem;
    }
}

.blog-date {
    color: #718096;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

/* Ensure modal is always in front and perfectly centered */
.modal {
    z-index: 99999 !important;
}

.modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: 90%;
    max-width: 600px;
}