html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

#_dash-app-content {
    height: 100%;
}


/* Fancy button: hover changes color, active (click) uses a different color */
.fancy-btn {
  transition: background-color 0.18s ease, color 0.18s ease;
}
.fancy-btn:hover:not(:active) {
  background-color: #a9ffe2 !important;
}
.fancy-btn:active {
  background-color: rgb(47, 201, 151) !important;
  color: white !important;
}

/* Plain button: disable hover/active visual changes */
.plain-btn:hover {
  background-color: rgb(47, 201, 151) !important;
  color: white !important;
}

.plain-btn:active {
  background-color: inherit !important;
  color: inherit !important;
}

/* Base large square buttons */
.base-style {
  background-color: lightgray;
  width: 160px;
  height: 210px;
  font-size: 24px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Side smaller buttons */
.side-style {
  background-color: lightgray;
  width: 140px;
  height: 60px;
  font-size: 18px;
  border-radius: 10px;
  text-align: left;
  padding-left: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
}

/* Back/confirm/cancel buttons */
.back-style {
  background-color: lightgray;
  width: 120px;
  height: 50px;
  font-size: 18px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}

/* Login page layout 
.login-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  gap: 15px;
}

#login-page .input-style {
  width: 320px;
}
*/

/* Inputs and dropdowns */
.input-style {
  padding: 10px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  background-color: #fff;
  margin-bottom: 12px;
}
.dropdown-style {
  width: 100%;
  margin-bottom: 12px;
}

/* --- Modal overlay and container --- */
.modal-overlay {
  display: none;           /* toggle to block in callbacks */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1500;
}

.modal {
  display: none;           /* toggle to block in callbacks */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* center */
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.30);
  z-index: 2000;           /* above overlay */
  width: 420px;
  max-width: 92%;
  font-family: Arial, sans-serif;
}

/* Modal formatting */
.modal-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: #222;
  text-align: center;
}
.modal-field {
  margin-bottom: 16px;
}
.modal-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

/* Button row */
.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

/* Buttons inside modals */
.btn-primary {
  background-color: rgb(47, 201, 151);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: rgb(37, 171, 128);
}
.btn-secondary {
  background-color: #ddd;
  color: #333;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease;
}
.btn-secondary:hover {
  background-color: #bbb;
}

.modal-message {
  margin-top: 12px;
  color: #c00;
  font-size: 14px;
}

/* AGROSMART IMAGE MODAL OVERRIDE */

#agrosmart-image-modal {
  width: 90vw !important;
  max-width: 1400px !important;
  max-height: 90vh !important;
  padding: 20px;
}

@font-face {
  font-family: 'ArianLT';
  src: url('/assets/fonts/ArianLT-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'ArianLT';
  src: url('/assets/fonts/ArianLT-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

html, body {
  font-family: 'ArianLT', Arial, sans-serif;
  font-weight: 300;   /* Light everywhere by default */
}

input,
button,
select,
textarea {
  font-family: 'ArianLT', Arial, sans-serif;
  font-weight: 300;
}

/* Dropdown selected value & placeholder */
.Select-control {
  color: #222;               /* darker text */
}

/* Dropdown options */
.Select-menu-outer {
  color: #222;               /* options text */
}

/* Individual option */
.Select-option {
  color: #222;
}

/* Hovered option */
.Select-option.is-focused {
  background-color: #f0f0f0; /* light hover background */
  color: #111;
}

/* Selected option */
.Select-option.is-selected {
  background-color: rgb(47, 201, 151);
  color: white;
}

/* Generic white card look */
.card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Stronger card (image + table) */
.card-large {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Section titles */
.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.DayPickerKeyboardShortcuts_buttonReset {
    display: none !important;
}

/* AgroSmart alerts table pagination */
#agrosmart-alertas-table .previous-next-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

#agrosmart-alertas-table .previous-next-container button {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: #1d1d1d !important;
    color: white !important;
    border-radius: 7px !important;
    min-width: 32px;
    height: 32px;
    cursor: pointer;
}

#agrosmart-alertas-table .previous-next-container button:hover {
    background: rgb(47, 201, 151) !important;
    color: white !important;
    border-color: rgb(47, 201, 151) !important;
}

#agrosmart-alertas-table .previous-next-container button:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Hide Dash's internal current-page sizing shadow */
#agrosmart-alertas-table .current-page-shadow {
    display: none !important;
}

/* Clean current / total page layout */
#agrosmart-alertas-table .page-number {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;

    height: 32px !important;
    padding: 0 8px !important;

    background: #1d1d1d !important;
    color: white !important;

    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 7px !important;

    box-sizing: border-box !important;
}

/* Current page input */
#agrosmart-alertas-table .current-page-container {
    display: flex !important;
    align-items: center !important;

    width: 32px !important;
    height: 30px !important;

    margin: 0 !important;
    padding: 0 !important;
}

#agrosmart-alertas-table .current-page-container input {
    width: 32px !important;
    height: 30px !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;
    line-height: normal !important;

    background: transparent !important;
    color: white !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    font-size: 14px !important;
    box-sizing: border-box !important;
}

/* Remove browser number-input arrows */
#agrosmart-alertas-table .current-page-container input::-webkit-outer-spin-button,
#agrosmart-alertas-table .current-page-container input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

#agrosmart-alertas-table .current-page-container input[type="number"] {
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

.leaflet-control-attribution {
    font-size: 7px !important;
    background: rgba(255, 255, 255, 0.35) !important;
    padding: 1px 4px !important;
}

/* =========================================================
   DASH DATATABLE
   ========================================================= */

/* Selected / active cells should look like normal cells */
.dash-table-container .dash-spreadsheet-container
.dash-spreadsheet-inner td.dash-cell.focused,

.dash-table-container .dash-spreadsheet-container
.dash-spreadsheet-inner td.dash-cell.cell--selected,

.dash-table-container .dash-spreadsheet-container
.dash-spreadsheet-inner td.dash-cell.focused.cell--selected {
    background-color: white !important;
    color: black !important;

    border-top: 1px solid #d6d6d6 !important;
    border-bottom: 1px solid #d6d6d6 !important;
    border-left: 1px solid #d6d6d6 !important;
    border-right: 1px solid #d6d6d6 !important;

    outline: none !important;
    box-shadow: none !important;
}


/* Selected cell should also remain normal when hovered */
.dash-table-container .dash-spreadsheet-container
.dash-spreadsheet-inner td.dash-cell.focused:hover,

.dash-table-container .dash-spreadsheet-container
.dash-spreadsheet-inner td.dash-cell.cell--selected:hover {
    background-color: white !important;
    color: black !important;
}


/* Remove normal browser focus outline */
.dash-table-container .dash-spreadsheet-container
.dash-spreadsheet-inner td:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #d6d6d6 !important;
}

/* Hover effect */
.dash-table-container .dash-spreadsheet-container
.dash-spreadsheet-inner td.dash-cell:hover {
    background-color: #e8f3f3 !important;
    cursor: pointer;
}

/* Effect while physically clicking */
.dash-table-container .dash-spreadsheet-container
.dash-spreadsheet-inner td.dash-cell:active {
    background-color: #cfe5e5 !important;
}

/* DataTable sort arrows - normal */
.dash-table-container .dash-spreadsheet-container
.dash-spreadsheet-inner th .column-header--sort {
    color: #666666 !important;
}

/* DataTable sort arrows - hover */
.dash-table-container .dash-spreadsheet-container
.dash-spreadsheet-inner th:hover .column-header--sort,
.dash-table-container .dash-spreadsheet-container
.dash-spreadsheet-inner th .column-header--sort:hover {
    color: #2fc997 !important;
}