body {
  margin: 0;
  padding: 0;
  /*font-family: 'Josefin Sans';
  font-family: 'Josefin Sans", Arial, Helvetica, sans-serif';*/
  font-family: "-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  color: rgb(37, 37, 37);
  min-height: 100vh;
  font-size: 14px;
}

/*NAVBAR*/
body nav {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-color: #f3f3f3;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
}
body nav .navbar-nav {
  width: 100%;
  display: block;
  float:right !important
}

body .btn {
  background-color: #002e5c;
  border-color: #002e5c;
  margin: 16px 10px;
  float: right;
  cursor: pointer;
  font-size: 15px;
}
body button i { font-size: 14px; }

body .btn-active {
  background-color: #002e5c;
  border-color: #002e5c;
  color: white;
}

body .btn-inactive {
  background-color: #cccccc;
  border-color: #cccccc;
  color: black;
}

body .btn:hover, body .btn:focus {
  opacity: 0.9;
}

body .toggle-options {
  display: flex;
  flex-direction: row;  
  justify-content: flex-end;
  padding: 0 15px;
  margin-bottom: 15px 0;
}
body .toggle-options .btn { margin-top: 12px; margin-bottom: 8px; }

.table tr th {
  max-width: 160px;
}

.table tr td {
  padding: 4px 12px;
  color: #202428d6;
}

body nav .navbar-nav a.title { 
  padding: 20px;
  text-align: center;
  width: 55%;
  font-weight: 300;
  margin-right:30px;
  color:white; /*temp*/
}

body .navbar-expand-lg .navbar-nav a.nav-item {
  color:#002e5c;
  font-weight: bold;
  padding: 30px 60px 30px 30px;
  min-height: 80px !important;
  float: right !important
}

body nav a.nav-logo img {
  max-height: 58px;
  margin: 5px 20px;
}

.navbar { 
  min-height: 80px; 
  padding-top: 0px; 
  padding-bottom: 0px; 
  position: relative;
  z-index: 10;
  background-color: #fff;
}

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

.navbar-nav .nav-pills {
  float: right !important;
}

body .container .landing-page .landing-forms {
  padding: 160px 0 0 160px;
}

.login_form {
  margin: left 30px;
}

body div.container {
  min-height: 80%;
  margin: 30px auto 60px;
  /* max-width: 1150px;*/
}

body div.container .landing-page {
  min-height: 550px;
  padding: 40 50px;
  color: black;
  margin: 0px 25px;
}

body div.container .landing-page .home { padding: 0 30px; }

body div.container .landing-page h4 {
  padding-bottom: 20px;
}

body div.container .landing-page #map {
  min-width:600px;
  margin-top: 36px;
  border-radius: var(--bs-border-radius);
} 


.map { padding: 0; margin: 0; }
.map-section, .map, #map {
  height: 92%;
  /* width: 44vw; */
}

.forecast-point select {
  margin-top: 12px;
  margin-bottom: 8px;
  display: initial;
  float: left;
  min-width: 200px;
  font-size: 15px;
  max-width: 400px;
}

.forecast-point .btn-go{
  margin: 40px;
  float: left;
}


#last-update-text {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}


.graph-box {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  background-color: #f2f2f270;
  max-width: 1250px;
  margin-left: auto; /* Center the box */
  margin-right: auto; /* Center the box */
}

.graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}


.graph-details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
}

.location-info {
  margin: 0;
  text-align: left;
}

.last-update-text {
  margin: 0;
  text-align: right;
}

.plot-container {
  width: 100%; 
  height: 500px; 
  display: flex;
  justify-content: center;
  align-items: center;
}

h3 {
  margin-bottom: 5px;
}

.graph-controls {
  display: flex;
  gap: 8px;
}

.graph-controls button {
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-width: 32px;
  height: 32px;
  font-weight: bold;
}

.graph-controls button:hover {
  background-color: #005299;
}


/* ADMIN PANEL */

.btn-admin {
  margin: 0px 4px !important;
  color: white;
  width: 58px;
}

.btn-admin:hover {
  color: white;
}


/* FOOTER */
footer {
  width: 100%;
  height: 250px;
  position: sticky;
  top: 100%;
  background-color: #002e5c;
  color: white;
  text-align: center;
}

footer .row {
  padding: 20px;
  margin: 0px;
}

footer .row .address {
  text-align: right;
  color: #e3e3e3;
  font-size: 12px;
  padding-top: 5px;
}

footer .row .sevenseas {
  font-weight: bold;
  font-size: 35px;
  margin-bottom: 30px;
}



/* MODAL */

/* Modal customization */
.modal-content {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #e0e0e0;
}

.modal-title {
  font-weight: bold;
}


.modal-body {
  min-height: 120px;
}


.form-group label {
  font-weight: 500;
}

.edit-field {
  width: 100%;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #d1d1d1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease;
}

.edit-field:focus {
  border-color: #5a9;
  outline: none;
}

.btn-admin {
  background-color: #5a9;
  color: #fff;
  border-radius: 5px;
}

.btn-admin:hover {
  background-color: #4a8;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
}

button.close {
  outline: none;
  border: none;
  background: none;
  font-size: 1.5rem;
  opacity: 0.7;
}

button.close:hover {
  opacity: 1;
}

#linkForecast .modal-body .row {
  margin-top: 15px;
  margin-bottom: 10px;
}

#linkForecast select {
  max-width: 60%;
  margin-bottom: 45px;
}

.select2-search input {
  pointer-events: auto;
  display: block;
}


@media (min-width: 1450px) {
  .landing-forms {
    max-width: 630px;
    margin-left: auto;
    margin-right: auto; 
  }
}


.form-group { min-height: 60px; }
.form-control { font-size: 14px; width: 100%;}

/* REPORT PAGE */
.btn-report {
  display: flex;
  float: right;
}

.btn-left { float: left !important }

.report-dropdown {
  width: 45%;
}

#report-settings-form .form-group { margin-top: 8px; }

#report-settings-form .btn { margin-top: 5px; }

.section-title {
  margin-bottom: 30px; /* Adds space below the title */
}

#open_add_list_modal {
  margin-top: 0px;
  margin-bottom: 20px;
}

.form-container { padding-top: 40px; }
.form-container .list-group .list-group-item { border: 0px; }

#email-list {
  max-width: 500px;
}

#btn-save-emails {
  margin-top: 0px;
}


label { margin-right: .5rem; margin-bottom: 3px; }
.parameter-type-section { margin-top: 12px; }



/* Entire coordinate section */
.coordinate-section {
  /*border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9; */
  padding: 15px;
  margin-bottom: 20px;
}

/* Header with toggle */
.coordinate-header {
  display: flex;
  flex-direction: column; /* Stack label and toggle vertically */
  align-items: flex-start;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Toggle switch container */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toggle switch styling */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 20px;
}

.toggle-switch input {
  display: none;
}

.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 20px;
}

.toggle-switch .slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider {
  background-color: #007bff;
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* Coordinate input groups */
.coordinate-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.manual_date_group {
  max-width: 265px;
  max-height: 40px;
  margin: 15px 18px;
}
.manual_date_group input { padding: 4px 12px; font-size: 15px; }
.manual_date_group select { padding-top: 4px;  padding-bottom: 4px; font-size: 15px; }
.manual_date_group .date-control-forecast { margin-top:25px; }

.button_date button { margin: 16px 10px; }
.button_date {
  display: flex;
  flex-direction: row;  
}

#manual_hour { max-width: 120px;}

.forecast_map .tab-content .tab-pane .text-center img { max-width: 875px; }
.forecast_map .tab-content .slider-container { max-width: 1025px; }
.forecast_map .tab-content .slider-container button { width: 35px; height: 34px; margin: 15px; }
.forecast_map .tab-content .slider-container button i { padding: 3px; }


.nav-tabs { border-bottom: 0;}
.nav-tabs.flex-column {
  margin-right: -1px; /* hace que las tabs se solapen un poco sobre el content */
  z-index: 2;         /* asegura que se dibujen por encima */
}

.nav-tabs.flex-column .nav-link.active {
  border-color: #dee2e6 #fff #dee2e6 #dee2e6; 
  border-right-color: #fff; 
  background-color: #fff;
  position: relative;
  z-index: 3;
}

.nav-tabs.flex-column .nav-link {
  border-radius: 0;
}

.tab-content {
    border: 1px solid #dee2e6;  
    padding: 5px;
    border-radius: .375rem;  /* todas las esquinas */
    border-top-left-radius: 0; 
    background-color: #fff;
}

.forecast_column { padding-right: 0 }
.forecast_frame { padding-left: 0 }


.alert { margin:20px; }