* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4682B4; /* Steel blue from original */
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --body-bg: #f5f8fa;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f4f7f6;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Login page specific styles */
body.login-page {
  background: linear-gradient(135deg, #2196F3, #0D47A1);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.login-card {
  background-color: white;
  border-radius: 8px;
  padding: 40px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 8%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-nav > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;  
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-button {
  text-decoration: none;
  color: #495e73;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 5px;
}

.nav-button:hover {
  color: white;
  background-color: var(--primary-color);
}

.nav-button.active {
  color: white;
  background-color: var(--primary-color);
}

/* Container */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  flex-grow: 1;
}

/* Home section */
#home {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  width: 100%;
}

#home h1 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Centered Content Styles */
h1 {
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  font-size: 2.5rem;
  width: 100%;
}


/* Two column layout */
.two-column {
  display: flex;
  gap: 2rem;
}

.column {
  flex: 1;
}


/* Features Grid Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

/* Feature Card Styling */
.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
  background-color: rgba(70, 130, 180, 0.1);
  color: var(--primary-color);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 1.8rem;
}

.feature-card h3 {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-color);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Call to Action Container */
.cta-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0 1rem;
}

.cta-container .btn-primary,
.cta-container .btn-secondary {
  max-width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

/* Introduction styling enhancement */
.introduction {
  text-align: center;
  margin-bottom: 3rem;
}

.introduction p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.introduction ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin: 1.5rem 0;
}

.introduction ul li {
  display: inline-flex;
  align-items: center;
}

.introduction ul li::before {
  margin-right: 0.5rem;
}

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

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cta-container {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-container .btn-primary,
  .cta-container .btn-secondary {
    width: 100%;
    max-width: 100%;
  }
  
  .introduction ul {
    flex-direction: column;
    align-items: center;
  }
  
  .introduction ul li {
    text-align: left;
    width: 100%;
    max-width: 250px;
  }
}

/* Login/Signup Card */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

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

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-logo i {
  font-size: 2rem;
  color: #2196F3;
  margin-right: 0.5rem;
}

.auth-logo h1 {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 0;
}

.auth-card h2, .login-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  font-weight: 500;
  font-size: 24px;
}

.auth-card h3 {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 20px;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* Styling for password strength indicator */
.password-strength {
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
}

/* Styling for password match indicator */
.password-match {
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
}

/* Alert message styles */
.alert-message {
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
}

.alert-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* OTP Container Styles */
#otp-container {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

#otp-container p {
  text-align: center;
  margin-bottom: 15px;
  color: var(--gray-color);
}

/* Upload Form Styles */
.form-container, .upload-container, .help-content {
  width: 100%;
  max-width: 800px;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.form-group, .upload-container {
  width: 100%;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  text-align: left;
}

.form-group input, #fileUpload {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: left;
}

.btn-primary {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 5px;
  width: 100%;
}

.btn-primary:hover {
  background-color: #2980b9;
}

/* Apply the same width, padding, and display properties to both buttons */
.btn-secondary {
  background-color: var(--gray-color);
  color: white;
  border: none;
  padding: 12px 24px; /* Ensure equal padding */
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  text-align: center;
  margin-top: 5px;
  display: inline-block;
  width: 100%; /* Make both buttons full width or set a fixed width */
}

/* Optional: hover effect for both buttons */
.btn-secondary:hover {
  background-color: #5a6268;
}

.form-footer, .file-help {
  margin-top: 15px;
  text-align: center;
  color: #666;
}

/* Alert styles */
.alert-message {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  text-align: center;
  display: none;
}

.alert-message.success {
  background-color: var(--success-color);
  color: white;
}

.alert-message.error {
  background-color: var(--danger-color);
  color: white;
}

/* Form check styling */
.form-check {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  text-align: left;
}

.form-check input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

.form-check label {
  margin-bottom: 0;
}

/* Upload progress styling */
.upload-progress {
  width: 100%;
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-top: 20px;
}

.upload-progress h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  width: 0;
  transition: width 0.5s ease;
}

/* Hidden class styling */
.hidden {
  display: none;
}

/* Select styling - ensuring consistency */
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
}

/* Additional enhancement for the file input */
input[type="file"] {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
}

/* Ensure consistent styling for progress text */
#progressText {
  color: var(--gray-color);
  font-size: 0.9rem;
}

/* Help Section Styles */
.help-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.help-section {
  flex: 2;
  min-width: 300px;
}

.contact-section {
  flex: 1;
  min-width: 250px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.help-section h2, .contact-section h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

details {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
  padding: 15px;
  transition: all 0.3s ease;
}

details:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

details summary {
  cursor: pointer;
  font-weight: bold;
  outline: none;
  padding: 5px 0;
  position: relative;
  padding-left: 25px;
}

details summary::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  transition: transform 0.3s ease;
}

details[open] summary::before {
  content: "-";
}

details p {
  margin-top: 10px;
  padding-left: 25px;
}

.contact-section ul {
  list-style-type: none;
  padding: 0;
}

.contact-section ul li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-section ul li i {
  color: var(--primary-color);
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Authentication Required Message */
.auth-required {
  text-align: center;
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 0 auto;
}

.auth-required h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.auth-required p {
  margin-bottom: 20px;
  color: #555;
}

.auth-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto;
  width: 100%;
}


/* Logout button styles */
.logout-button {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  color: #dc3545;
  transition: all 0.3s ease;
}

.logout-button:hover {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

/* Alert styles for homepage */
.container .alert-message {
  max-width: 800px;
  margin: 0 auto 20px auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .main-nav {
    padding: 20px;
  }

  .main-nav > div {
    flex-direction: column;
  }

  .nav-buttons {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
  }

  .form-container, .upload-container, .help-content {
    padding: 20px;
    width: 90%;
  }

  h1 {
    font-size: 2rem;
  }
  
  .two-column {
    flex-direction: column;
  }
  
  .login-card {
    width: 90%;
    padding: 30px;
  }
  
  .help-content {
    flex-direction: column;
  }
  
  .auth-buttons {
    flex-direction: column;
    width: 100%;
  }
}

/* Adding to existing CSS styles */

/* Reports Page Specific Styles */
#reports {
  width: 100%;
}

/* Filters Container */
.filters-container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  flex: 1;
}

.filter-group label {
  margin-bottom: 8px;
  font-weight: 500;
}

.filter-group select, .filter-group input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#custom-date-range {
  display: flex;
  gap: 15px;
  width: 100%;
}

#custom-date-range.hidden {
  display: none;
}

/* Reports Table */
.reports-container {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.table-container {
  overflow-x: auto;
  width: 100%;
}

#reports-table {
  width: 100%;
  border-collapse: collapse;
}

#reports-table th, #reports-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

#reports-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

#reports-table tr:hover {
  background-color: #f5f8fa;
}

/* Risk Level Styling */
tr.high-risk td:nth-child(5) {
  color: var(--danger-color);
  font-weight: bold;
}

tr.medium-risk td:nth-child(5) {
  color: var(--warning-color);
  font-weight: bold;
}

tr.low-risk td:nth-child(5) {
  color: var(--success-color);
  font-weight: bold;
}

/* Action Buttons */
.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 5px;
  margin-right: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.view-report-btn {
  color: var(--primary-color);
}

.download-report-btn {
  color: var(--success-color);
}

.delete-report-btn {
  color: var(--danger-color);
}

.action-btn:hover {
  background-color: rgba(0,0,0,0.05);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.pagination-button {
  background-color: white;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-button:hover:not(:disabled) {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#page-indicator {
  font-weight: 500;
}

/* No Data Message */
.no-data {
  text-align: center;
  padding: 30px;
  color: var(--gray-color);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: modalSlideIn 0.3s forwards;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  color: var(--dark-color);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-color);
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--danger-color);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid #eee;
}

/* Report Preview Styles */
.report-preview {
  padding: 15px;
}

.report-header {
  margin-bottom: 20px;
  text-align: center;
}

.report-header h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.report-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

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

.report-section h4 {
  color: var(--dark-color);
  margin-bottom: 10px;
}

.report-section ul {
  list-style-type: none;
  padding-left: 0;
}

.report-section ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.report-section ul li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Risk Level Styling in Modal */
.risk-level {
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
}

.risk-level.high {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
}

.risk-level.medium {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--warning-color);
}

.risk-level.low {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

/* Notification Styles */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 15px 20px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 1001;
  min-width: 250px;
  max-width: 350px;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification.success {
  border-left: 4px solid var(--success-color);
}

.notification.error {
  border-left: 4px solid var(--danger-color);
}

.notification.info {
  border-left: 4px solid var(--primary-color);
}

.notification i {
  font-size: 1.2rem;
}

.notification.success i {
  color: var(--success-color);
}

.notification.error i {
  color: var(--danger-color);
}

.notification.info i {
  color: var(--primary-color);
}

/* Danger Button */
.btn-danger {
  background-color: var(--danger-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-danger:hover {
  background-color: #c82333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  #custom-date-range {
    flex-direction: column;
  }
  
  .modal-content {
    width: 95%;
  }
  
  .pagination {
    flex-direction: column;
    gap: 10px;
  }
}