﻿@import url('https://rsms.me/inter/inter.css');

:root {
    --tblr-font-sans-serif: 'Inter Var', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
}

body {
    font-feature-settings: "cv03", "cv04", "cv11";
}

/* Positioning and basic styling of the refresh icon */
.refresh-icon {
    font-size: 20px;
    margin-left: 10px;
    animation: none; /* No animation initially */
}

/* Spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Add spin class to enable the spinning */
.spin {
    animation: spin 1s linear infinite;
}

/* Set CSS for modal focus */
.modal-backdrop {
    z-index: 1040; /* Base backdrop z-index */
}

#modal-danger .modal-content {
    z-index: 1055; /* Danger modal content above the form modal */
}

#modal-danger .modal-backdrop {
    z-index: 1054; /* Backdrop right behind the danger modal content */
}

/* Profile Modal Page */
.about-me-container {
    position: relative;
    max-height: 12em;
    overflow: hidden;
    padding-bottom: 2em;
    text-align: center;
    transition: max-height 0.3s ease;
}

    .about-me-container.expanded {
        max-height: none;
    }

#about-me-text {
    line-height: 1.5em;
    margin: 0;
    text-align: left;
    transition: max-height 0.3s ease;
    position: relative;
    z-index: 1; /* Ensure text is beneath the overlay */ /* Ensure the text is above the overlay */
}

.blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6em; /* Adjust height to overlap appropriately */
    pointer-events: none;
    z-index: 2; /* Ensure overlay is behind the text */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.7)); /* Dark gradient overlay */
}

.about-me-container.expanded .blur-overlay {
    opacity: 0;
    visibility: hidden;
}

.read-more-link {
    display: inline-block;
    color: #007bff;
    cursor: pointer;
    font-weight: bold;
    position: absolute;
    bottom: 0.2em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; /* Ensure link is above the overlay */
}


/* End Profile Modal Page */

/* Autocomplete styles with Prediction Box */
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-items li {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-items li:hover {
    background-color: #e9e9e9;
}

/* Light theme styles */
body[data-bs-theme="light"] .autocomplete-items {
    background-color: #ffffff;
    color: #000000;
    border-color: #d4d4d4;
}

    body[data-bs-theme="light"] .autocomplete-items li:hover {
        background-color: #f1f1f1;
    }

/* Dark theme styles */
body[data-bs-theme="dark"] .autocomplete-items {
    background-color: #151f2c;
    color: #ffffff;
    border-color: #142f51;
}

body[data-bs-theme="dark"] .autocomplete-items li:hover {
    background-color: #0f1c2a;
}

.form-group.position-relative {
    position: relative;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em; /* Adds spacing between radio buttons */
    position: relative;
}

.profile-gender-status-icon {
    position: absolute;
    right: 0px; /* Adjust to position icon to the right */
    top: 50%;
}

.status-icon.spin {
    animation: rotation 1s infinite linear;
}

/* Center the icon vertically within the container */
.ms-auto {
    display: flex;
    align-items: center;
}

/* Define the rotation animation */
@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
