body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
    background: #12c2e9;
    background: -webkit-linear-gradient(to right, #f64f59, #c471ed, #12c2e9);
    background: linear-gradient(to right, #f64f59, #c471ed, #12c2e9);
}

.main {
    background-color: #010101;
    padding: 40px; /* Reduced padding for compactness */
    border-radius: 20px; /* Less rounded corners */
    width: 60%; /* Reduced width */
    max-width: 600px; /* Restrict max width */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.main svg {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    height: auto;
}

header {
    width: 100%;
    text-align: center;
}

.input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px; /* Add spacing between elements */
}

input[type="text"] {
    padding: 10px;
    width: 80%; /* Use a percentage for better responsiveness */
    max-width: 400px; /* Restrict max width */
    border-radius: 5px;
    border: 1px solid #ddd;
}

select {
    padding: 10px;
    width: 80%;
    max-width: 400px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #0066cc;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #005bb5;
}

.report-section {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px; /* Restrict the max width */
    display: none;
}

footer {
    width: 100%;
    text-align: center;
    padding: 10px;
    position: relative; /* Avoids overlap issues */
    bottom: 0;
}

.button-container {
    display: flex;
    gap: 10px; /* Space between buttons */
    justify-content: center;   
    margin-top: 10px;
}

@media (max-width: 768px) {
    .main {
        width: 90%; /* Use more space on smaller screens */
        padding: 20px; /* Reduce padding further */
    }

    input[type="text"], select {
        width: 100%; /* Expand to fit smaller screens */
    }
}
/* Spinner overlay that covers the entire screen */
#spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Make sure it's above all other content */
}

/* Spinner style */
.spinner {
    border: 8px solid #f3f3f3; /* Light gray border */
    border-top: 8px solid #3498db; /* Blue color for the top */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite; /* Animation for spinning */
}

/* Keyframes for spinning animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
p.small-text {
    font-size: 0.8em; /* Adjust size as needed */
    
}

#loginPopup {
    display: none;
    position: fixed;
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 300px;
    position: absolute;
}

.close-button {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

h3 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #333;
    font-size: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.submit-button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-button:hover {
    background: #0056b3;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-button {
    position: absolute;
    right: 10px;
    top: 10px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

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

.submit-button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

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

/* Report section styles */
.report-section-header {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.report-links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.report-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.report-link:hover {
  background-color: #0056b3;
}

.local-report-link {
  background-color: #28a745;
}

.local-report-link:hover {
  background-color: #218838;
}

.s3-report-link {
  background-color: #007bff;
}

.s3-report-link:hover {
  background-color: #0056b3;
}

.html-link {
  background-color: #17a2b8;
}

.html-link:hover {
  background-color: #138496;
}

.json-link {
  background-color: #6c757d;
}

.json-link:hover {
  background-color: #5a6268;
}

.success-message {
  color: #28a745;
  margin: 15px 0;
  font-weight: 500;
}

.error-message {
  color: #dc3545;
  margin: 15px 0;
  font-weight: 500;
}

.view-all-reports-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.view-all-reports-btn:hover {
  background-color: #5a6268;
}

/* All reports view styles */
.all-reports-header {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #333;
}

.all-reports-container {
  margin-top: 20px;
}

.date-section {
  margin-bottom: 30px;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
}

.date-header {
  font-size: 1.25rem;
  color: #495057;
  margin-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 5px;
}

.reports-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.report-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.report-label {
  font-weight: 500;
  color: #495057;
}

.report-links {
  display: flex;
  gap: 10px;
}

.no-reports-message {
  color: #6c757d;
  font-style: italic;
  margin: 20px 0;
}

.back-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 20px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #5a6268;
}
