:root {
    --bs-blue: #49AEE6;
    --bs-darkblue: #3379A1;
    --bs-bluetab: #49AEE6;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #FFE5EE;
    --bs-red: #dc3545;
    --bs-orange: #EF6525;
    --bs-yellow: #EEEEEE;
    --bs-green: #49AEE6;
    --bs-greensync: #49cE06;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #0dcaf0;
    --bs-secondary: #dde3ed;
    --bs-success: #28a744;
    --bs-info: #A3D7F4;
    --bs-warning: #b3b001;
    --bs-danger: #ce2d57;
    --bs-light: #f8f9fa;
    --bs-dark: #666666;
    --bs-primary-rgb: 13, 202, 240;
    --bs-secondary-rgb: 221, 227, 237;
    --bs-success-rgb: 40, 167, 68;
    --bs-info-rgb: 163, 215, 244;
    --bs-warning-rgb: 179, 176, 1;
    --bs-danger-rgb: 206, 45, 87;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark-rgb: 102, 102, 102;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;
    --bs-body-rgb: 33, 37, 41;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, #d3f0Ff, #49AEE6);
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-body-bg: #ffffff;
    --bs-bg: #49AEE6;
}

[data-bs-theme='dark'] {
    --bs-blue: #49AEE6;
    --bs-darkblue: #005271;
    --bs-bluetab: #49AEE6;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #682A39;
    --bs-red: #dc3545;
    --bs-orange: #EF6525;
    --bs-yellow: #EEEEEE;
    --bs-green: #0089BD;
    --bs-greensync: #49cE06;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #e9ecef;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #111519;
    --bs-primary: #005271;
    --bs-secondary: #49AEE6;
    --bs-success: #0089BD;
    --bs-info: #17384A;
    --bs-warning: #404040;
    --bs-danger: #682A39;
    --bs-light: #f0f1f2;
    --bs-dark: #666666;
    --bs-primary-rgb: 0, 82, 113;
    --bs-secondary-rgb: 48, 116, 153;
    --bs-success-rgb: 40, 167, 68;
    --bs-info-rgb: 23, 56, 74;
    --bs-warning-rgb: 179, 176, 1;
    --bs-danger-rgb: 206, 45, 87;
    --bs-dark-rgb: 248, 249, 250;
    --bs-light-rgb: 102, 102, 102;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;
    --bs-body-rgb: 33, 37, 41;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, #000000, #17384A);
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #FFF;
    --bs-body-bg: #000000;
    --bs-bg: #17384A;
}
[data-bs-theme='dark'] .text-light{
    color: var(--bs-gray-200) !important;
}
[data-bs-theme='dark'] .text-dark {
    color: var(--bs-gray-300) !important;
}
[data-bs-theme='dark'] .bg-lightgray {
    color: var(--bs-gray-300) !important;
    background-color: var(--bs-gray-700) !important;
}
.bg-lightgray {
    color: var(--bs-gray-700) !important;
    background-color: var(--bs-gray-300) !important;
 }
[data-bs-theme='dark'] .bg-lightlightgray {
    color: var(--bs-gray-100) !important;
    background-color: var(--bs-gray-900) !important;
}

.bg-lightlightgray {
    color: var(--bs-gray-900) !important;
    background-color: var(--bs-gray-100) !important;
}

.bg-header {
  background-color: #3ca3cc91 !important;
}

[data-bs-theme='dark'] .bg-header {
  background-color: #17384A90 !important;
}


.bg-highlight-header {
  background-color: #57aed698 !important;
}

[data-bs-theme='dark'] .bg-highlight-header {
  background-color: #006c9777 !important;
}

.table-highlight {
  background-color: #f1f1f1f3 !important;
}

[data-bs-theme='dark'] .table-highlight {
  background-color: #323843ee !important;
}

.bg-button {
  background-color: #f3f4f790 !important;
}

[data-bs-theme='dark'] .bg-button {
  background-color: #27577a77 !important;
}

.text-gray{
    color:#a0a0a0 !important;
}
.text-red{
    color:#d40000 !important;
}
.text-yellow{
    color: #dd7700  !important;
}
[data-bs-theme='dark'] .text-yellow{
    color:#d19e13 !important;
}


html {
  font-size: 14px;
}

@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: 0px;
  background-image: var(--bs-gradient);
  background-color: var(--bs-body-bg);
}

.container{
    max-width: 1200px;
}

/* Active tab */
.nav-tabs .nav-link.active {
    background-color: var(--bs-info);
    color: var(--bs-white);
    
}
button.nav-link > span {
    color: var(--bs-gray-dark);
}
button.nav-link.active > span {
    color: var(--bs-white);
    font-weight:500;
}
/* Hover effect for non-active tabs */
.nav-tabs .nav-link:hover {
    background-color: var(--bs-blue);
}
/* Hover effect for active tabs */
.nav-tabs .nav-link:hover {
    background-color: var(--bs-primary);
}

.nav-icon {
    display: inline;
    width: 24px;
    height: 24px;
}

.button-image {
    display: inline;
    width: 60px;
    height: 60px;
}

/* LOGIN */

.help-icon > img {
    width: 30px;
    height: 30px;
}

.login-form {
    text-align: center;
    width: 375px;
    padding: 30px 50px;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}
.logo {
    width: 100px;
    margin-bottom: 10px;
}
.logoMain {
    width: 150px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: unset;
    border-bottom: 1px solid #000;
    border-radius: 0px;
}

.username-container {
    position: relative;
}

#warning-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: none;
}

input:invalid {
    border-color: red;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px; 
    background-size: cover;
    cursor: pointer;
}

#show-password:checked + .password-toggle {
    background-image: url('/img/ic_eye_icon_off.png'); 
}

#show-password:not(:checked) + .password-toggle {
    background-image: url('/img/ic_eye_icon.png');
}

.password-container input[type="checkbox"] {
    position: absolute;
    bottom: 2px;
    right: 2px;
}

.btn-login {
    color: #fff;
    background: var(--bs-darkblue);
    padding: 15px;
}

.links {
    margin-top: 10px;
}

.links a {
    display: block;
    margin-bottom: 5px;
    color: #007bff;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 20px;
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.text-button-libreta {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-black-rgb), var(--bs-text-opacity));
    white-space: normal !important;
    text-align: left !important;
    font-size: 1.25rem !important;
    padding-left: 1rem !important;
    /* margin-top: .5rem !important; */
    width: 100% !important;
    font-weight: 500;
}
[data-bs-theme='dark'] .text-button-libreta {
    color: rgba(var(--bs-white-rgb), var(--bs-text-opacity));
}

.div-button-libreta {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity));
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-left: 1rem !important;
    align-items: left !important;
    flex-direction: row !important;
    width: 100% !important;
    min-height: 60px;
    display: flex !important;
}

.mt-6{
margin-top: 60px;
}
@media (max-width: 767px) { 
    .mt-6 {
        margin-top: 54px;
    }
}

.mb-6 {
    margin-bottom: 60px;
}

@media (max-width: 767px) {
    .mb-6 {
        margin-bottom: 54px;
    }
}

.h7{
font-size: 1.1rem;
}
.h8 {
    font-size: 0.9rem;
}

.align-end{
text-align:end;
}
.scrollable-div {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
}

:has(ul.nav-tabs) .scrollable-div {

}

.scrollable-tab {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
}

:has(ul.nav-tabs) .scrollable-tab {

}

.scrollable-chat {
    flex-direction: column;
    top: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
}
.scrollable {
    flex-direction: column;
    overflow-y: auto;
    scroll-behavior:smooth;
}
.bottom-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width:100%;
}
.bottom-fixedMD {
    position: fixed;
    bottom: 0;
    right: 0;
}
.top-fixed {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
}

.bubble {
    border-radius: 14px;
    margin: 3px;
    padding: 6px 6px 2px;
}

.received {
    border-top-left-radius: 2px !important;
    margin-right: 15px;
    background-color: var(--bs-secondary);
}

.sent {
    border-bottom-right-radius: 2px !important;
    margin-left: 15px;
    background-color: var(--bs-primary);
    color: var(--bs-light-rgb);
}

.floating-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex; 
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.floating-icon-l {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.floating-icon:hover {
    background-color: #0056b3;
}

.card {
    max-width: 200px;
    margin: 0 auto;
    justify-content: center;
}

.card-img-top {
    height: 100px;
    object-fit: cover;
    justify-content: center;
}

input[type="radio"] {
  transform: scale(2);
}
.badge-alerta-moderada {
  background-color: var(--bs-orange);
}
.text-orange{
    color: var(--bs-orange) !important;
}

.alerta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-left: 3px solid transparent;
}
#formContacto .form-control {
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    color: #212529;
    transition: border-color 0.2s, background-color 0.2s;
}
#formContacto .input-group > .form-control:not(:last-child) {
    border-radius: 10px 0 0 10px;
}
#formContacto .input-group > .form-control:not(:first-child) {
    border-radius: 0 10px 10px 0;
    border-left: 0;
}
[data-bs-theme='dark'] #formContacto .form-control {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e9ecef;
}
[data-bs-theme='dark'] #formContacto .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
#formContacto .form-control.is-invalid {
    border-color: var(--bs-red);
    border-width: 1px;
}


.alerta-card            { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 8px; border-left: 4px solid transparent; margin: 4px 0; text-align: left; box-shadow: 0 1px 4px rgba(0,0,0,0.10); }
.alerta-card-left       { display: flex; flex-direction: column; flex: 1; text-align: left; }
.alerta-card-label      { display: flex; align-items: center; font-weight: 600; font-size: 1rem; }
.alerta-card-subtitle   { font-size: 0.85rem; margin-top: 2px; opacity: 0.85; text-align: left; }
.alerta-card-right      { display: flex; flex-direction: column; align-items: flex-end; margin-left: 12px; flex-shrink: 0; }
.alerta-card-num        { font-size: 2rem; font-weight: 700; line-height: 1; }
.alerta-card-numlabel   { font-size: 0.8rem; cursor: help; }

.alerta-card-neutral    { background: rgba(255,255,255,0.7); border-left-color: #aaa; color: #444; }
.alerta-card-neutral .alerta-card-num { font-size: 2rem; font-weight: 700; color: #333; }

.alerta-card-leve       { background: #f0fdf4; border: 1px solid rgba(67,160,71,0.25); border-left: 4px solid #43a047; color: #2e7d32; }
.alerta-card-moderada   { background: #fff8e1; border: 1px solid rgba(249,168,37,0.35); border-left: 4px solid #f9a825; color: #e65100; }
.alerta-card-critica    { background: #ffebee; border: 1px solid rgba(198,40,40,0.2);  border-left: 4px solid #c62828; color: #b71c1c; }

[data-bs-theme='dark'] .alerta-card-neutral  { background: rgba(255,255,255,0.07); color: #ccc; }
[data-bs-theme='dark'] .alerta-card-leve     { background: #1b3a1f; border: 1px solid rgba(67,160,71,0.3); border-left: 4px solid #43a047; color: #81c784; }
[data-bs-theme='dark'] .alerta-card-moderada { background: #3d2e00; border: 1px solid rgba(249,168,37,0.3); border-left: 4px solid #f9a825; color: #ffca28; }
[data-bs-theme='dark'] .alerta-card-critica  { background: #3b1215; border: 1px solid rgba(198,40,40,0.3);  border-left: 4px solid #c62828; color: #ef9a9a; }




