/* Import Raleway font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

html {
  font-size: 14px;
  font-family: 'Raleway', sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Typography improvements with Raleway */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

.navbar-brand {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
}

.btn {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
}

.card-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
}

/* Survey-specific styling */
.survey-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: #2c3e50;
}

.question-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  color: #34495e;
}

.answer-option {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
}

/* Admin panel styling */
.admin-header {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  color: #2c3e50;
}

/* Survey layout styling */
.survey-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.survey-logo {
  max-width: 200px;
  height: auto;
}

/* Logo link styling */
.survey-header a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.survey-header a:hover {
  opacity: 0.8;
}

.survey-header a:hover .survey-logo {
  cursor: pointer;
}

.survey-image {
  max-width: 150px;
  height: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Survey page specific styling */
.survey-page {
  min-height: calc(100vh - 120px);
}

/* Modal styling */
.modal-header.bg-warning {
  background-color: #ffc107 !important;
  border-bottom: 1px solid #ffb300;
}

.modal-header.bg-warning .btn-close {
  filter: invert(1);
}

/* Footer styling */
.footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 15px 0;
  margin-top: 50px;
}

.footer .container {
  padding: 0 15px;
  line-height: 1.5;
}

/* Ensure main content has enough bottom padding */
main {
  padding-bottom: 20px !important;
}

/* Admin pages specific styling */
.container-fluid {
  padding-bottom: 50px;
}

/* Ensure buttons at bottom of pages are clickable */
.card-footer {
  margin-bottom: 20px;
}

/* Reporting pages specific */
.reporting-content {
  padding-bottom: 50px;
}

/* Profile dropdown styling */
.navbar-nav .dropdown-menu {
  border: 1px solid #dee2e6;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
}

.navbar-nav .dropdown-item {
  padding: 0.5rem 1rem;
  transition: background-color 0.15s ease-in-out;
}

.navbar-nav .dropdown-item:hover {
  background-color: #f8f9fa;
}

.navbar-nav .dropdown-item.text-danger:hover {
  background-color: #f8d7da;
  color: #721c24 !important;
}

.navbar-nav .dropdown-divider {
  margin: 0.5rem 0;
}

/* User dropdown toggle styling */
.navbar-nav .dropdown-toggle::after {
  margin-left: 0.5rem;
}

/* Profile page styling */
.admin-header {
  color: #495057;
  font-weight: 600;
}