@font-face {
    font-family: 'Ubuntu';
    src: url('../blazor-hybrid-portal.Shared/fonts/Ubuntu-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('../blazor-hybrid-portal.Shared/fonts/Ubuntu-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('../blazor-hybrid-portal.Shared/fonts/SourceSansPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../blazor-hybrid-portal.Shared/fonts/SourceSansPro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../blazor-hybrid-portal.Shared/fonts/SourceSansPro-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../blazor-hybrid-portal.Shared/fonts/SourceSansPro-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../blazor-hybrid-portal.Shared/fonts/SourceSansPro-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../blazor-hybrid-portal.Shared/fonts/SourceSansPro-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../blazor-hybrid-portal.Shared/fonts/SourceSansPro-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../blazor-hybrid-portal.Shared/fonts/SourceSansPro-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../blazor-hybrid-portal.Shared/fonts/SourceSansPro-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../blazor-hybrid-portal.Shared/fonts/SourceSansPro-SemiboldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../blazor-hybrid-portal.Shared/fonts/SourceSansPro-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../blazor-hybrid-portal.Shared/fonts/SourceSansPro-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

html, body {
    font-family: 'Source Sans Pro';
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu';
    font-weight: 700;
}

.btn-full-width {
    width: 100%;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.maplibregl-popup-content {
    width: 300px !important;
    border-radius: 8px !important;
}

.popup-buttons-container {
    display: flex;
    justify-content: space-evenly;
    margin-top:8px;
    gap:8px;
}

/* Popup Styles */
.popup-details-btn {
    cursor: pointer;
    line-height: 1.2;
    width:100%;
}

    .popup-details-btn:hover {
        opacity: 0.8;
    }


.popup-details-btn.primary {
    background-color: #1b6ec2 !important;
    border-color: #1861ac !important;
    color: white !important;
}

.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;
}

h1:focus {
    outline: none;
}

.black-text * {
    color: black;
}

.white-text * {
    color: white !important;
}

.grey-text * {
    color: grey !important;
}

.grey-text-only {
    color: grey !important;
}

.invisible{
    display:none;
}


.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd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jY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.poi-popup * {
    color : black;
}
/* Refresh Notification */
.refresh-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out, fadeOut 0.3s ease-out 8s forwards;
}

.refresh-notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    background-color: var(--card-bg-color);
}

    .refresh-notification-content * {
        color: var(--card-text-color);
    }

    .refresh-icon-spinning {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideDown {
    0% { transform: translateY(-20px) translateX(-50%); opacity: 0; }
    100% { transform: translateY(0) translateX(-50%); opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* POPUP CSS */
.popup-container * {
    color: var(--card-text-color);
}

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    width: 100vw;
    height: 100vh;
}

.popup-container.popup-visible {
    opacity: 1;
    pointer-events: auto;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100vw;
    height: 100vh;
    z-index: 9000;
}

.popup-content {
    color: var(--card-text-color);
    position: relative;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 70%;
    margin: 0 16px;
    overflow: auto;
    z-index: 10000;
    max-height : 90%;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.popup-close-button {
    background: none;
    border: none;
    font-size: 35px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.popup-body {
    padding: 20px;
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    gap: 8px;
}

/* Confirmation popup specific styles */
.confirmation-popup {
    max-width: 400px;
}

.confirmation-message {
    text-align: center;
    padding: 10px 0;
}

.popup-confirmation-message .popup-warning {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
}

.popup-confirmation .popup-footer {
    justify-content: center;
    border-top: none;
}

/* Form elements */
.popup-form-group {
    margin-bottom: 16px;
}

.popup-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.popup-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.popup-radio-group {
    display: flex;
    gap: 24px;
    margin: 16px 0;
}

.popup-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-collapsible-section {
    padding-bottom: 16px;
    border-bottom: 1px solid grey;
    padding-top: 16px;
}

.popup-section-header {
    display: flex;
/*    justify-content: space-between;*/
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.popup-section-content {
    margin-top: 12px;
    padding: 8px 0;
    max-height:20rem;
    overflow: auto;
}

.popup-checkbox-group, .popup-user-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-checkbox-option, .popup-user-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Generic Confirmation Dialog */
.confirmation-dialog-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.confirmation-dialog-container.visible {
    opacity: 1;
    pointer-events: auto;
}

.confirmation-dialog-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.confirmation-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9000;
}

.confirmation-dialog * {
    color: var(--card-text-color);
}

.confirmation-dialog {
    position: relative;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    margin: 0 16px;
    overflow: hidden;
    z-index: 10000;
}

.confirmation-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.confirmation-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.confirmation-dialog-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.confirmation-dialog-content {
    padding: 20px;
    text-align: center;
}

.confirmation-dialog-content p {
    margin: 0;
    font-size: 16px;
}

.confirmation-dialog-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    gap:16px;
    border-top: 1px solid #e0e0e0;
}

.btn-secondary, .btn-primary, .btn-danger {
    padding: 10px 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-danger {
    background-color: #ff7b7b;
    color: white;
}

.btn-danger:hover {
    background-color: #ff6666;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-primary {
    background-color: #1ebea5;
    color: white;
}

.btn-primary:hover {
    background-color: #17a08a;
}

/* For backward compatibility */
/* Using duplicate class definitions instead of @extend which is not supported in regular CSS */
.delete-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.delete-confirmation.visible {
    opacity: 1;
    pointer-events: auto;
}

.delete-confirmation.hidden {
    opacity: 0;
    pointer-events: none;
}

.delete-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9000;
}

.delete-confirmation-dialog {
    position: relative;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    margin: 0 16px;
    overflow: hidden;
    z-index: 10000;
}

.delete-confirmation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.delete-confirmation-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.maplibregl-popup-close-button{
    display:none !important;
}

.popup-details-info {
    border-radius: 4px;
    border: 0px;
    background-color: transparent;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.delete-confirmation-content {
    padding: 20px;
    text-align: center;
}

.delete-confirmation-content p {
    margin: 0;
    font-size: 16px;
}

.delete-confirmation-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
}

.delete-button {
    padding: 10px 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
    background-color: #ff7b7b;
    color: white;
}

.delete-button:hover {
    background-color: #ff6666;
}

.cancel-button {
    padding: 10px 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
    background-color: #f0f0f0;
    color: #333;
}

.cancel-button:hover {
    background-color: #e0e0e0;
}

.form-non-editable {
    opacity: 0.5;
    pointer-events: none;
}

/* Eye Icon Animation */
.eye-icon-clickable {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
    padding: 4px;
}

.eye-icon-clickable:hover {
    transform: scale(1.1);
    background-color: rgba(0, 123, 183, 0.1);
    box-shadow: 0 2px 8px rgba(0, 123, 183, 0.2);
}

.eye-icon-clickable:active {
    transform: scale(1.05);
    background-color: rgba(0, 123, 183, 0.2);
}