/* Common styles */
body {
    padding-bottom: 70px; /* Space for footer */
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.logo-container img {
    max-height: 60px;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    background-color: #f5f5f5;
    text-align: center;
}

.page-title {
    color: #09457b;
}

/* Compact UI styles */
.container {
    padding-top: 0.5rem;
}

h1, h2, h3, h4 {
    margin-bottom: 0.5rem;
}

.form-container {
    margin-bottom: 0.75rem;
}

/* Alerts */
.alert {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

/* Navigation styles */
.nav-pills .nav-link {
    border-radius: 0;
    padding: 0.5rem 1rem;
    color: #495057;
}

.nav-pills .nav-link.active {
    background-color: #09457b;
    color: white;
}

/* Cookie consent popup */
#cookieConsent {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background-color: #f1f1f1; 
    padding: 15px; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); 
    z-index: 9999;
    display: none;
}

/* 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-y: auto; /* Allow scrolling if content is tall */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* Reduced from 15% to 5% to position higher on screen */
    padding: 20px;
    border-radius: 5px;
    width: 80%; /* Increased from 400px to 80% for better responsiveness */
    max-width: 600px; /* Set a max-width for larger screens */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    position: sticky;
    bottom: 0;
    background-color: #fefefe;
    padding-top: 10px;
}

.modal-button {
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-cancel {
    background-color: #f2f2f2;
}

.modal-continue {
    background-color: #0b3d91;
    color: white;
}

/* Summary card styles */
.summary-card {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-header {
    background-color: #09457b;
    color: white;
    padding: 0.75rem 1rem;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.summary-body {
    padding: 1rem;
    background-color: #f8f9fa;
}

.summary-stat {
    font-weight: bold;
    font-size: 1.1em;
}

/* Warning styles */
.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}

.warning.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Button group styles */
.button-group {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Reduce table spacing */
.table td, .table th {
    padding: 0.5rem;  /* Reduce from default 0.75rem */
    vertical-align: middle;
}

/* Reduce size of form controls */
.form-control {
    padding: 0.375rem 0.5rem;  /* Slightly smaller padding */
    height: calc(1.5em + 0.5rem + 2px);  /* Reduced height */
}

/* Make form rows more compact */
.form-group {
    margin-bottom: 0.5rem;
}

/* Help text styling */
.help-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Info icon with tooltip */
.info-tooltip {
    position: relative;
    display: inline-block;
    color: #0b3d91;
    margin-left: 5px;
    cursor: help;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Breadcrumb styles */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: #09457b;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #092c6b;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Navigation badges */
.nav-pills .nav-link .badge {
    font-size: 0.7rem;
}

/* File validation feedback styles */
.file-feedback {
    margin-top: 0.5rem;
}

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

.feedback-error {
    color: #dc3545;
}

.feedback-warning {
    color: #ffc107;
}

.feedback-success small {
    color: #28a745;
    font-weight: 500;
}

.feedback-error small {
    color: #dc3545;
    font-weight: 500;
}

.feedback-warning small {
    color: #856404;
    font-weight: 500;
}

/* Enhanced file input styling */
.form-control-file {
    border: 2px dashed #dee2e6;
    padding: 1rem;
    border-radius: 0.375rem;
    transition: border-color 0.3s ease;
}

.form-control-file:hover {
    border-color: #09457b;
}

.form-control-file:focus {
    border-color: #09457b;
    box-shadow: 0 0 0 0.2rem rgba(9, 69, 123, 0.25);
}

/* Loading state improvements */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Enhanced alert styling for file validation */
.alert-validation {
    border-left: 4px solid #09457b;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
}

.alert-validation .alert-heading {
    color: #09457b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alert-validation ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.alert-validation li {
    margin-bottom: 0.25rem;
}