/* Importera Roboto från Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Importera Proxima Nova typsnitt */
@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Regular.woff2') format('woff2'),
       url('/fonts/ProximaNova-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('/fonts/ProximaNova-Bold.woff2') format('woff2'),
       url('/fonts/ProximaNova-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  font-family: 'Roboto', 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Anpassning av primärfärg för knappar */
.btn-primary {
  background-color: #5486e5ff !important;
  border-color: #5486e5ff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #4a78d1ff !important;
  border-color: #4a78d1ff !important;
}

.logo-container {
  height: 25vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container img {
  max-height: 80%;
  max-width: min(80%, 600px);
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Huvudinnehåll */
.content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
  padding-bottom: 100px;
  align-items: center;
  text-align: center;
}

/* Endast editprofile ska vara full bredd */
.view-editprofile .content {
  align-items: stretch;
}

/* Begränsa kortbredden på profilsidan */
.view-profile .card {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.view-profile .card-body {
  width: 100%;
  text-align: left;
}

/* Knappar och komponenter */
.main-button {
  width: 100%;
  max-width: 600px;
  font-size: 1.2rem;
  padding: 15px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  border-top: 1px solid #ddd;
  height: 70px;
  z-index: 1000;
}

.bottom-nav .nav-item {
  flex: 1;
  text-align: center;
}

.bottom-nav .nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 12px;
  text-decoration: none;
  color: black;
  gap: 4px;
}

.bottom-nav .nav-item a i {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.bottom-nav .nav-item span {
  font-size: 0.9rem;
  line-height: 1;
}

.guide-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.guide-alert {
  background-color: #FFF3CD;
  border: 1px solid #FFE69C;
  border-radius: 12px;
  color: #664D03;
  padding: 12px 16px;
  width: 100%;
  max-width: 600px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.guide-alert:hover {
  background-color: #FFE69C;
}

.guide-alert i {
  font-size: 1.25rem;
  color: #997404;
}

.status-box {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  text-align: left;
}

.status-box i {
  font-size: 1.5rem;
}

.status-box p {
  color: #333;
  font-size: 1rem;
  line-height: 1.4;
}

.welcome-section {
  margin-top: -40px;
}

.welcome-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.welcome-section p {
  font-size: 1.4rem;
  color: #4a4a4a;
}

.alert.alert-success.alert-dismissible.fade.show {
  position: fixed; /* Or position: absolute; depending on your layout */
  top: 20px; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  width: 80%; /* Adjust as needed */
  z-index: 10; /* Ensure it's above other content */
}
.alert.alert-success.alert-dismissible.fade.show {
  margin-bottom: 32px; /* Increased from 16px */
}

/* Anpassningar för modal-fönster om registerutdrag */
#criminalRecordInfoModal .modal-dialog {
  max-width: 90%;
  margin: 1.75rem auto;
}

#criminalRecordInfoModal .modal-content {
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#criminalRecordInfoModal .modal-header {
  border-bottom: 2px solid #f8f9fa;
  padding: 1.25rem 1.5rem;
}

#criminalRecordInfoModal .modal-body {
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

#criminalRecordInfoModal .alert-primary {
  background-color: #f0f7ff;
  border-color: #0d6efd;
  border-width: 2px;
  border-radius: 8px;
}

/* Stil för den blå rutan med vit text */
#criminalRecordInfoModal .bg-primary {
  background-color: #0d6efd !important;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#criminalRecordInfoModal .text-white h5 {
  color: white;
  margin-bottom: 0.75rem;
}

#criminalRecordInfoModal hr {
  margin: 2rem 0;
}

#criminalRecordInfoModal h3.modal-title {
  font-size: 1.75rem;
}

#criminalRecordInfoModal h4.modal-title {
  font-size: 1.4rem;
  line-height: 1.2;
}

#criminalRecordInfoModal h5 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

#criminalRecordInfoModal h6 {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* Anpassningar för mobil */
@media (max-width: 768px) {
  #criminalRecordInfoModal .modal-dialog {
    max-width: 100%;
    margin: 0;
    height: 100%;
  }
  
  #criminalRecordInfoModal .modal-content {
    height: 100%;
    border-radius: 0;
  }
  
  #criminalRecordInfoModal .modal-body {
    padding: 1rem;
  }
}

/* Anpassning för desktop */
@media (min-width: 769px) {
  #criminalRecordInfoModal .modal-dialog {
    max-width: 700px;
  }
}