/* ================================
   Date & Date Range Picker Inputs
   ================================ */

.date-component .form-control,
.daterange-wrapper .form-control {
    background: #fff;
    cursor: pointer;
}

/* icon container */
.date-component .input-group-text,
.daterange-wrapper .input-group-text {
    background: #f3f4f6;
    /* light grey background */
    border-left: 0;
    cursor: pointer;
}

/* icon color */
.date-component .input-group-text i,
.daterange-wrapper .input-group-text i {
    color: #6c757d;
}

/* hover */
.date-component .input-group-text:hover,
.daterange-wrapper .input-group-text:hover {
    background: #e9ecef;
}

/* ensure range input stays white */
.daterange-wrapper .form-control[readonly] {
    background-color: #fff;
    opacity: 1;
}

.daterange-wrapper {
    position: relative;
}

/* ================================
   Preset Dropdown
   ================================ */

.daterange-presets {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    min-width: 220px;
    padding: 6px 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.daterange-presets .dropdown-item {
    padding: 6px 14px;
    cursor: pointer;
}

.daterange-presets .dropdown-item:hover {
    background-color: var(--app-primary-color);
}

.daterange-presets::before,
.daterange-presets::after {
    display: none !important;
}

select {
    cursor: pointer;
}

select:disabled {
    cursor: not-allowed;
}

.custom-select:focus {
    border-color: var(--app-primary-color);
}

.custom-select:focus::-ms-value {
    border-color: var(--app-primary-color);
}

.custom-select.is-valid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-size: 1em 1em;
}

.pagination-nav {
    margin-top: 20px;
}

.drag-handle {
    cursor: grab;
}

.data-table-row {
    text-align: center;
}

input[type="radio"]:checked {
    accent-color: var(--app-primary-contrast-color);
}

.add-files-container {
    height: 80px;
    width: 90px;
    position: relative;
    display: inline-block;
}

.add-files-container>video,
.add-files-container>img,
.add-files-container>iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-files-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.image-holder {
    width: 100px;
    height: 100px;
    margin: 20px;
}

.image-holder>a>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-image-container {
    display: flex;
    flex-wrap: wrap;
}

.document-display {
    display: flex;
    flex-wrap: wrap;
}

.document-display-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.document-display>div {
    margin-right: 5px;
}

.profile-img {
    max-width: 300px;
    height: auto;
    margin-bottom: 10px;
}

.profile-img>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-initial {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #4b2c9d;
    border-radius: 100%;
    background-color: #d6dbee;
}

.profile {
    width: 40px;
    height: 40px;
    position: relative;
    text-align: right;
}

.profile>div {
    cursor: pointer;
}

.profile i {
    padding: 12px 10px;
}

.profile-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    list-style: none;
    width: 175px;
    display: none;
    text-align: center;
    border-radius: 8px;
    transform: translateY(-10px);
    transition: opacity 3s, transform 3s;
}

.profile-menu li {
    text-align: left;
    background-color: var(--app-secondary2-color);
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 10px;
}

.profile-menu .avatar {
    padding: 2px 0;
}

.profile-menu h3 {
    font-size: var(--font-normal);
    margin: 0 0 5px 0;
    display: inline;
}

.profile-menu p {
    margin-bottom: 0;
    font-size: var(--font-normal);
}

.profile-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    /* Use 50% for circular shape */
    background-color: #ccc;
}

.profile-icon-img {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    object-fit: cover;
}

.module-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* margin: 30px; */
    padding: 1rem;
}

.module-card {
    position: relative;
    display: inline-block;
    background: #f8f9fa;
    text-align: center;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    width: 15rem;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.8s ease-in-out;
}

.module-card:hover {
    background: #e0e0e0;
}

.module-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--app-secondary2-color);
    padding: 2.125rem 0rem 2.0625rem 0rem;
    border-radius: 0.5rem 0.5rem 0 0;
    font-size: 30px;
    color: #333;
}

.module-title {
    height: 50px;
    text-align: center;
    background-color: var(--app-primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 0 0.5rem 0.5rem;
    color: #FFF;
    font-style: normal;
    line-height: normal;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    text-transform: capitalize;
}

.hover-routes {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    /* transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; */
    transform: translateY(10px);
    transition: all 0.2s ease;
}

/* Desktop hover */
@media (hover: hover) {
    .module-card:hover .hover-routes {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Mobile / touch (JS toggles this) */
.module-card.active .hover-routes {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.route-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.route-link i {
    font-size: 16px;
    color: #007bff;
}

.route-link:hover {
    background: #ddd;
}

.dashboard-icon {
    font-size: var(--dashboard-icon);
    color: var(--app-primary-contrast-color);
}

.dashboard-user-img {
    width: 60px;
    height: auto;
}

.star-icon {
    color: gold;
}

.navbar .select2-container {
    width: 220px !important;
}

.project-dropdown {
    max-height: 300px;
    overflow-y: auto;
    /* padding-top: 0; */
}

.project-dropdown .dropdown-header {
    margin-top: 0;
}

.autocomplete-dropdown li:hover,
.autocomplete-dropdown li.active {
    background-color: var(--app-primary-contrast-color);
}