p {
    margin: 0;
}
*{
    box-sizing: border-box;
}
.active {
    display: flex !important;
}

.active_section {
    display: block !important;
}

.active_link {
    background-color: var(--theme-color);
    color: var(--white-color) !important;
}

/* covers */
.edit_rental_building_cover,
.edit_booked_unit_cover,
.edit_house_cover,
.delete_rental_building_cover,
.confirm_vacate_room_cover,
.delete_house_cover,
.delete_account_cover,
.place_info_cover,
.edit_place_cover,
.delete_place_cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-dark-gradient);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.edit_rental_building,
.edit_house_box,
.delete_rental_building,
.edit_booked_unit,
.vacate_room_box,
.delete_house_box,
.delete_account_box,
.place_info_modal,
.edit_place_modal,
.delete_place_modal{
    border: none;
    width: 100%;
    max-width: 400px;
    height: fit-content;
    min-height: 200px;
    display: none;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white-color);
    border-radius: 10px;
    z-index: 1000;
}
.place_info_modal,
.edit_place_modal,
.delete_place_modal {
    display: flex !important;
}

.delete_rental_building,
.vacate_room_box,
.delete_house_box,
.delete_account_box{
    display: flex;
}

.edit_rental_building .header,
.edit_house_box .header,
.delete_rental_building .header,
.vacate_room_box .header,
.delete_house_box .header,
.edit_booked_unit .header,
.delete_account_box .header,
.place_info_modal .header,
.edit_place_modal .header,
.delete_place_modal .header {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--border-grey);
    position: relative;
}

.edit_rental_building .body,
.edit_house_box .body,
.edit_booked_unit .body,
.place_info_modal .body,
.edit_place_modal .body {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: start;
    overflow: hidden;
}

.edit_rental_building .body span,
.edit_booked_unit .body span,
.edit_house_box .body span,
.place_info_modal .body span,
.edit_place_modal .body span {
    color: var(--text-white);
    font-weight: 600;
    font-size: medium;
    padding: 10px;
    font-family: var(--font-bold);
    width: 100%;
    border-radius: 0;
    margin: 0;
    text-align: center;
    cursor: pointer;
}

.edit_rental_building .body span,
.edit_booked_unit .body span,
.edit_house_box .body span,
.place_info_modal .body span,
.edit_place_modal .body span {
    background-color: var(--theme-color);
}

.edit_rental_building .body span.delete,
.edit_booked_unit .body span.vacate,
.edit_house_box .body span.delete,
.edit_place_modal .body span.delete {
    background-color: var(--danger-color);
}

/* confirm modals */
.delete_rental_building,
.vacate_room_box,
.delete_house_box,
.delete_account_box,
.place_info_modal,
.delete_place_modal {
    height: fit-content !important;
}
.delete_rental_building .body,
.vacate_room_box .body,
.delete_house_box .body,
.delete_account_box .body,
.place_info_modal .body,
.delete_place_modal .body {
    overflow: hidden;
    height: 100px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding:0 10px;
}

.delete_rental_building .header i,
.vacate_room_box .header i,
.delete_house_box .header i,
.delete_account_box .header i,
.place_info_modal .header i,
.delete_place_modal .header i{
    color: var(--danger-color);
}
.delete_rental_building .header span,
.vacate_room_box .header span,
.delete_house_box .header span,
.delete_account_box .header span,
.delete_place_modal .header span
{
    color: var(--danger-color);
    font-family:var(--font-bold);
}
.place_info_modal .header span {
    color: var(--theme-color);
    font-family: var(--font-bold);
}

.delete_rental_building .body span.warning,
.vacate_room_box .body span.warning,
.delete_house_box .body span.warning,
.delete_account_box .body span.warning,
.delete_place_modal .body span.warning {
    color: var(--danger-color);
    font-family: var(--font-medium);
    font-size: medium;
    text-align: left;
}
.place_info_modal .body span {
    display: inline;
    color: var(--black-color);
    font-family: var(--font-medium);
    font-size: medium;
    text-align: left;
    background-color: transparent;
}


.delete_rental_building .buttons,
.vacate_room_box .buttons,
.delete_house_box .buttons,
.delete_account_box .buttons,
.place_info_modal .bottom,
.delete_place_modal .buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    gap: 10px;
}
.delete_rental_building .buttons button,
.vacate_room_box .buttons button,
.delete_house_box .buttons button,
.delete_account_box .buttons button,
.place_info_modal .bottom button,
.delete_place_modal .buttons button{
    width: 50%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-semibold);
    font-size: medium;
}
.place_info_modal .bottom button {
    background-color: var(--theme-color);
    color: var(--white-color);
    margin: 0 auto;
}

.delete_rental_building .buttons .cancel,
.vacate_room_box .buttons .cancel,
.delete_house_box .buttons .cancel,
.delete_account_box .buttons .cance,
.delete_place_modal .buttons .cancel {
    background-color: var(--background-light);
    color: var(--black-color);
    border: 1px solid var(--border-grey);
}
.delete_rental_building .buttons .delete,
.vacate_room_box .buttons .vacate,
.delete_house_box .buttons .delete,
.delete_account_box .buttons .delete,
.delete_place_modal .buttons .delete{
    background-color: var(--danger-color);
    color: var(--white-color);
}

/* --- Main Container --- */
.profile-container {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    overflow-y: auto;
    display: block;
    margin: auto;
}

/* --- Header Section --- */
.profile-header {
    background-color: var(--primary-color);
    overflow: hidden;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-top: 5px;
}


.dashnav {
    border: none;
    display: flex;
    background-color: var(--background-grey);
    border-radius: inherit;
    padding: 8px;
    overflow: auto;
    scrollbar-width: none;
}

.dashnav .dashlink {
    color: var(--theme-color);
    border-radius: inherit;
    padding: 5px 15px;
    margin: 0;
    cursor: pointer;
    margin: 0 2px;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: row;
    border-radius: 10px;
    font-family: var(--font-medium);
    border: 1px solid var(--border-grey);
}

.dashnav .dashlink:hover {
    background-color: var(--theme-color);
    color: var(--white-color);
}

/* --- Details Grid Section --- */

.hosting_section,
.places_section,
.booking_section {
    display: flex;
    gap: 20px;
    justify-content: start;
    align-items: flex-start;
    padding: 2px;
    border-radius: 10px;
}

.rentalsBox,
.housesBox,
.bookedUnitsBox,
.caretakerBuildingsBox,
.places_section{
    border: 1px solid var(--border-grey);
    border-radius: 10px;
    padding: 5px;
    display: block;
    margin-top: 5px;

}

.rentalsBox .sectionTitle,
.housesBox .sectionTitle,
.bookedUnitsBox .sectionTitle,
.caretakerBuildingsBox .sectionTitle,
.places_section .sectionTitle {
    color: var(--black-color);
    font-family: var(--font-semibold);
    font-size: medium;
    padding: 10px;
    display: block;
}


.rental_building_card,
.house_card,
.booked_unit_card,
.caretaker_building_card,
.place_card {
    margin: 2px;
    width: 100%;
    max-width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    display: inline-flex;
    flex-direction: column;
    justify-content: start;
    background-color: var(--white-color);
    position: relative;
    border: 1px solid var(--border-grey);
    cursor: pointer;
}


.caretaker_building_card a,
.rental_building_card a,
.house_card a,
.place_card a {
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.rental_building_card img,
.house_card img,
.place_card img,
.booked_unit_card img,
.caretaker_building_card img {
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.rental_building_card i,
.house_card i,
.booked_unit_card i,
.caretaker_building_card i,
.place_card i {
    position: absolute;
    top: 5px;
    color: var(--black-color);
    font-size: medium;
    background-color: rgb(255, 255, 255);
    padding: 5px;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rental_building_card .fa-building,
.house_card .fa-home,
.booked_unit_card .fa-home,
.caretaker_building_card .fa-building,
.place_card .fa-location-dot {
    left: 5px;
}
.place_card .fa-info-circle {
    right: 60px;
    background-color: rgb(255, 0, 0);
    color: var(--white-color);
}

.rental_building_card .options,
.house_card .options,
.booked_unit_card .show_edit_box,
.caretaker_building_card .edit_caretaker_building,
.place_card .edit_place {
    background-color: var(--black-color);
    color: var(--white-color);
    right: 5px;
    cursor: pointer;
}


.rental_building_card .details,
.house_card .details,
.booked_unit_card .details,
.caretaker_building_card .details,
.place_card .details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    margin: 5px;
    border-radius: 10px;
    background-color: var(--white-color);
    transition-duration: 0.3s;
    overflow: hidden;
    padding: 5px;
    border: 1px solid var(--border-grey);
}

.rental_building_card .details .top,
.house_card .details .top,
.booked_unit_card .details .top,
.caretaker_building_card .details .top,
.place_card .details .top {
    padding: 0 5px;
}

.top .rentalBuildingTitle,
.top .houseTitle,
.top .unitTitle,
.top .caretakerBuildingTitle,
.top .placeTitle {
    color: var(--black-color);
    font-family: var(--font-bold);
}

.rental_building_card .details .bottom,
.house_card .details .bottom,
.booked_unit_card .details .bottom,
.caretaker_building_card .details .bottom,
.place_card .details .bottom {
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 0 5px;
    color: rgb(82, 82, 82);
    font-family: var(--font-medium);
}

.rental_building_card .details .bottom i,
.house_card .details .bottom i,
.booked_unit_card .details .bottom i,
.caretaker_building_card .details .bottom i,
.place_card .details .bottom i {
    position: relative;
    top: 0;
    left: 0;
    color: var(--black-color);
    font-size: medium;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    width: fit-content;
    height: fit-content;
    display: inline;
}


/* cards end */

.dashboard_section {
    display: none;
    padding: 5px;
    border-radius: 10px;
    flex-wrap: wrap;
    overflow: hidden;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: flex-start;
}

/* post section */
.postBox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.posts {
    display: none;
    flex-wrap: wrap;
}

.posts.active {
    display: flex;
}

.taggedPosts {
    display: none;
}

.taggedPosts.active {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.posts_section .header {
    background-color: rgb(231, 231, 231);
    overflow: hidden;
    padding: 10px;
    display: flex;
    align-items: start;
    flex-direction: row;
    gap: 10px;
    border-radius: 10px;

}

.posts_section .header span {
    color: var(--black-color);
    font-family: var(--font-bold);
    font-size: medium;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid var(--border-grey);
    border-radius: 10px;
    width: fit-content;
    display: inline;
}

.posts_section .header span.active {
    background-color: var(--theme-color);
    color: var(--white-color);
    border: 1px solid var(--theme-color);
}


/* Center empty-state messages inside sections */
.dashboard_section>p,
.hosting_section>p,
.booking_section>p,
.notification_section>p,
.settings_section>p,
.taggedPosts>p {
    text-align: center;
    padding-top: 60px;
    /* vertical spacing from top */
    min-height: 180px;
    /* ensures vertical centering space */
    margin: 0 auto;
    color: var(--text-medium);
    font-family: var(--font-medium);
    background: transparent;
    /* ensure no background for these messages */
}


.notification_count {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 128, 255);
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 5px;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgb(0, 115, 255);
}

.notification_count.hidden {
    display: none;
}

.notification-card {
    border: 1px solid rgb(181, 181, 181);
    border-radius: 20px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    margin-bottom: 5px;
    cursor: pointer;
}


.notification-type {
    font-size: medium;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(0, 115, 255, 0.2);
    color: var(--theme-color-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.notification-details {
    width: 100%;
}

.notification-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-radius: 10px;
    margin-bottom: 5px;
}

.notification-head .title {
    font-family: var(--font-bold);
    font-weight: 800;

}

.notification-head .timestamp {
    font-size: smaller;
    color: var(--white-color);
    font-family: var(--font-medium);
    padding: 2px 6px;
    border-radius: 10px;
    text-align: end;
}

.notification-message {
    border: 1px solid rgb(201, 201, 201);
    padding: 5px 10px;
    font-family: var(--font-medium);
    color: #6c6c6c;
    border-radius: 10px;
}

.notification-details .action-url {
    color: var(--theme-color-light);
    font-weight: 600;
    font-family: var(--font-bold);
    text-decoration: none;
    border: 1px solid var(--theme-color);
    margin: 5px;
    padding: 5px 10px;
    border-radius: 10px;
    background-color: var(--white-color);
}

.notification-details .action-url:hover {
    color: var(--theme-color-light);
}

/* Unread notification styling */
.notification-card.unread {
    background-color: var(--theme-color-bg-light);
    border: 1px solid var(--theme-color-accent);
    border-radius: 8px;
}

.notification-card.unread .notification-head .title {
    color: var(--theme-color);
}

.notification-card.unread .notification-message {
    color: var(--black-color);
    border: 1px solid var(--theme-color);
}

.notification-card.unread .timestamp {
    color: var(--theme-color-dark);
}

/* Read notification styling */
.notification-card.read {
    background-color: var(--white-color);
}

.notification-card.read .notification-head .title {
    color: var(--black-color);
}

.notification-card.read .timestamp {
    color: rgb(77, 77, 77);
}

.notification-card.read .notification-message {
    color: #2f2f2f;
}

/*
 SETTINGS SECTION
*/
.settings_section {
    padding: 0;
}

.profile_box,
.user_settings,
.report {
    border: none;
    padding: 8px;
    border-radius: 10px;
    margin: 5px;
    overflow: hidden;
}

.profile_box .title,
.user_settings .title,
.report .title {
    color: rgb(131, 131, 131);
    font-family: var(--font-medium);
    margin: 10px 5px;
}

.profile_box div {
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
}


.profilePic {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    padding: 10px 0;
}

.profilePic div {
    flex: 0 0 auto;
}

.profilePic div:first-child {
    position: relative;
}

.profile_box div:last-child button {
    color: var(--white-color);
    background-color: var(--theme-color);
    padding: 10px;
    border-radius: 10px;
    width: fit-content;
    margin: 5px;
    display: inline-block;
    font-family: var(--font-bold);
    cursor: pointer;
    border: none;
}

.profilePic img {
    height: 100px;
    width: 100px;
    border-radius: 10px;
    display: block;
    margin: auto;
    cursor: pointer;
    border: 1px solid rgb(169, 169, 169);
}



.profilePic i {
    color: var(--white-color);
    position: absolute;
    z-index: 100;
    bottom: 0;
    right: 0;
    background-color: var(--theme-color);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.profile_box .details {
    display: inline-block;
    margin: 2px;
    flex-direction: column;
    justify-content: center;
    width: fit-content;
    padding: 0;
    border: none;
    width: 100%;
}

.profile_box .details span {
    color: var(--black-color);
    font-weight: 800;
    font-size: small;
    padding: 10px;
    font-family: var(--font-semibold);
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgb(225, 225, 225);
    width: 100% !important;
    margin: 2px;
}


/* help and feedback */

.report div,
.user_settings div,
.user_settings .log_out {
    border: 1px solid rgb(164, 164, 164);
    cursor: pointer;
    border-radius: 10px;
    padding: 10px;
    margin: 2px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    transition: all 0.2s ease;
}

.report div:hover,
.user_settings div:hover,
.user_settings .log_out:hover {
    background-color: rgb(237, 237, 237);
}

.report div:hover i {
    color: var(--black-color);
}

.report div i,
.profile_box .details i,
.user_settings div i {
    color: rgb(99, 99, 99);
    font-size: medium;
    padding: 5px;
}

.report div span {
    display: block;
}

.report div span:first-child,
.report div span,
.user_settings div:first-child,
.user_settings div span {
    color: var(--black-color);
    font-weight: 500;
    font-family: var(--font-medium);
    padding: 0;
    font-size: medium;
}


.report div div,
.user_settings div div {
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.report div div span:last-child,
.user_settings div div span:last-child {
    color: rgb(108, 108, 108);
    font-size: smaller;
    padding: 0;
}




/* app info */
#appInfo .modal-content {
    border: none;
    padding: 30px 25px;
    background: linear-gradient(135deg, var(--white-color) 0%, var(--background-light-gradient) 100%);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-in;
}

.close_app_info_modal {
    color: var(--white-color);
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--danger-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
    line-height: 1;
}

.close_app_info_modal:active {
    transform: scale(0.95);
}

#appInfo .modal-content h2 {
    color: #1e3a5f;
    font-family: var(--font-bold);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    margin-top: 0;
    letter-spacing: 0.5px;
}

#appInfo .modal-content p {
    font-family: var(--font-medium);
    color: #555;
    line-height: 1.6;
    font-size: 15px;
    margin: 10px 0;
    transition: color 0.3s ease;
}

#appInfo .modal-content p:first-of-type {
    color: #888;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 12px 0 16px 0;
}

#appInfo .modal-content p:nth-of-type(2) {
    color: #666;
    font-size: 15px;
    margin: 12px 0;
}

#appInfo .modal-content p:last-of-type {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 115, 255, 0.1);
    text-align: left;
}

/* Delete Report Confirmation Modal */
#deleteReportModal .modal-content.confirmation-modal {
    max-width: 400px;
    text-align: center;
}

#deleteReportModal .modal-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
    font-family: var(--font-bold);
    font-size: 20px;
}

#deleteReportModal .modal-content p {
    color: #666;
    font-family: var(--font-medium);
    font-size: 14px;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;

}

.btn-cancel,
.btn-danger {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-bold);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50%;
}

.btn-cancel {
    background-color: #e9ecef;
    color: #000000;
}

.btn-cancel:hover {
    background-color: #dee2e6;
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white-color);
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}


/* Booked Unit Details Modal */
.notification_modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease-in;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 20px 0;
}

.notification_modal.active {
    display: flex;
}

.notification_modal_content {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-in;
    margin: auto;
    scrollbar-width: none;
    position: relative;
}

.notification_modal_close {
    color: var(--white-color);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: var(--danger-color);
    border: none;
    padding: 5px 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}


#notificationModalBody {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    padding-top: 20px;
}

.notification-modal-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.notification-modal-type {
    font-size: medium;
    color: var(--theme-color-light);
    background-color: rgba(30, 131, 255, 0.15);
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

#notificationModalBody h3 {
    margin: 0;
    color: #333;
    font-family: var(--font-bold);
    font-size: 1.1rem;
}

#notificationModalBody p {
    color: #000000;
    font-size: small;
    font-family: var(--font-medium);
    text-align: left;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--white-color);
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.notification-modal-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-timestamp {
    color: #888;
    font-size: 0.85rem;
    font-family: var(--font-medium);
    align-self: flex-end;
}

.modal-timestamp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgb(148, 148, 148);
    width: 100%;
    padding: 10px 5px;
}

.modal-delete-icon {
    color: #ff4444;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 5px;
    border-radius: 4px;
}

.modal-delete-icon:hover {
    color: var(--danger-color);
    transform: scale(1.1);
    background-color: rgba(255, 68, 68, 0.1);
}

#modalNotificationAction a {
    display: inline-block;
    background-color: var(--theme-color-light);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-family: Nunito-Bold;
}

#modalNotificationAction a:hover {
    background-color: var(--theme-color-dark);
}

/* Booked Unit Details Modal */
.booked_unit_modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.1s ease-in;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 20px 0;
}

.booked_unit_modal .header {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.booked_unit_modal .header span {
    color: #000000;
    font-family: Nunito-Bold;
    font-size: large;
    margin: 0;
}

.booked_unit_modal.active {
    display: flex;
}

.booked_unit_modal_content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    height: 100%;
    overflow: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-in;
    margin: auto;
    scrollbar-width: none;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}





#bookedUnitModalBody h3 {
    margin-top: 0;
    color: #333;
    font-family: Nunito-Bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-details {
    margin-top: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: Nunito;
}

.detail-item .label {
    font-weight: 600;
    color: #555;
    min-width: 150px;
    font-family: Nunito-Bold;
}

.detail-item span:last-child {
    color: #181818;
    text-align: right;
    word-break: break-word;
    font-family: Nunito-Medium;
}

.detail-item:last-child {
    border-bottom: none;
}


/* Skeleton Loading Animation */
.skeleton-loader {
    display: inline-block;
    height: 25px;
    border-radius: 4px;
    background: linear-gradient(90deg,
            #e8e8e8 0%,
            #d0d0d0 25%,
            #e8e8e8 50%,
            #d0d0d0 75%,
            #e8e8e8 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 2s ease-in-out infinite;
    min-width: 100px;
    min-height: 1.2em;
    max-width: 150px;
}

.rent_amount_display .skeleton-loader {
    display: block;
    width: 150px;
    height: 1.8em;
    margin-top: 4px;
}

.pay_btn {
    border: none;
    padding: 8px 12px;
    background-color: var(--theme-color-light);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: Nunito-Bold;
}


@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    50% {
        background-position: 0% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-loader.status-badge {
    min-width: 80px;
    display: inline-flex;
    align-items: center;
}

@keyframes loading-circle {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-circle {
    border: 4px solid rgba(30, 131, 255, 0.2);
    border-top: 4px solid var(--theme-color-light);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: loading-circle 1s linear infinite;
}

.delete-loader {
    display: block;
    margin: 10px auto;
    border: 4px solid rgb(255, 176, 176);
    border-top: 4px solid red;
}

/* Error Text Styling */
.error-text {
    color: #ff1900;
    font-style: italic;
    opacity: 0.85;
}

/* Rent Status Section */
.rent_status {
    border: 1px solid rgba(30, 131, 255, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.rent_status_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(30, 131, 255, 0.2);
}

.rent_status_header .label {
    font-weight: 600;
    color: #555;
    font-family: Nunito-Bold;
}

#modal_rent_status {
    font-weight: 700;
    color: var(--theme-color-light);
    padding: 4px 12px;
    border-radius: 4px;
    background-color: rgba(30, 131, 255, 0.15);
    min-width: 80px;
    text-align: center;
}

.payment_methods_box {
    border: 1px solid rgba(30, 131, 255, 0.2);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment_methods_icons {
    display: flex;
    gap: 12px;
    flex: 1;
    justify-content: flex-start;
}

.payment_icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(30, 131, 255, 0.05);
}



.payment_icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.payment_icon i {
    font-size: 1.4rem;
    color: var(--theme-color-light);
}

.payment_icon span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    text-align: center;
    font-family: Nunito-Bold;
}

.rent_amount_display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 0;
    border: 1px solid rgba(30, 131, 255, 0.5);
    border-radius: 8px;
    padding: 12px 16px;
}

.rent_label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    font-family: Nunito-Medium;
}

#modal_rent_amount {
    font-size: medium;
    font-weight: 700;
    color: var(--theme-color-light);
    font-family: Nunito-Bold;
    min-width: auto;
}

@media (max-width: 600px) {
    .booked_unit_modal {
        padding: 10px 0;
    }

    .booked_unit_modal_content {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }

    .detail-item {
        flex-direction: column;
    }

    .detail-item span:last-child {
        margin-top: 5px;
        text-align: left;
    }

    #bookedUnitModalBody h2 {
        font-size: 1.3rem;
    }

    .detail-item .label {
        min-width: auto;
    }
}

/* modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease-in;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 10px 0;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    height: auto;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-in;
    margin: auto;
    scrollbar-width: none;
    position: relative;
}

.close_profile_pic_modal {
    color: var(--white-color);
    background-color: red;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}


#profilePicModalImg {
    width: 100%;
    max-width: 350px;
    height: 350px;
    border-radius: 8px;
    display: block;
    margin: auto;
    object-fit: cover;
    border: 1px solid rgb(169, 169, 169);
}

.profilePicUpdateMsg {
    font-size: small;
    text-align: center;
    margin-top: 10px;
    font-family: Nunito-SemiBold;
}

.updateImg {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}


.updateImg button {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: Nunito-Bold;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: block;
    align-items: center;
    justify-content: center;
}

.updateImg button:first-child {
    background-color: var(--theme-color-light);
    color: white;
}


.updateImg button.save {
    background-color: #28a745;
    color: white;
}

.updateImg button.save:not(:disabled) {
    background-color: #28a745;
    color: white;
    cursor: pointer;
}

.updateImg button.save:active:not(:disabled) {
    transform: translateY(0);
}

.updateImg button.save:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

/* Update Details Modal Styles */
#updateDetailsModal .modal-content h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 25px;
    font-weight: 700;
    color: #333;
}

/* Skeleton Loading for Update Details Modal */
.update-details-skeleton {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: red;
}

.update-details-skeleton .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.update-details-skeleton label {
    font-size: 13px;
    font-weight: 600;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
    border-radius: 4px;
    width: 60px;
    margin-bottom: 8px;
    display: block;
}

.update-details-skeleton .skeleton-loader {
    border-radius: 8px;
    height: 44px;
    display: block;
    width: 100%;
}

#updateDetailsModal .close_update_details_modal {
    background-color: red;
    color: white;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#updateDetailsForm .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

#updateDetailsForm label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#updateDetailsForm .input-with-icon {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
}

#updateDetailsForm .input-icon {
    font-size: 20px;
    color: #999;
    pointer-events: none;
    padding: 0 10px;

}

#updateDetailsForm input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 20px;
    font-family: Nunito-SemiBold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    border: none;
}

#updateDetailsForm input:focus {
    outline: none;
}

/* Error state - red border when field is empty */
#updateDetailsForm input[style*="border-color: rgb(255, 107, 107)"],
#updateDetailsForm input[style*="border-color: #ff6b6b"] {
    border-color: #ff6b6b !important;
    background-color: rgba(255, 107, 107, 0.05);
}

.updateDetails {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.updateDetails button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Nunito-Bold;
}

.updateDetails button.cancel {
    background-color: #f5f5f5;
    color: #333;
}

.updateDetails button.cancel:hover {
    background-color: #e8e8e8;
}

.updateDetails button.save {
    background-color: #28a745;
    color: white;
}

.updateDetails button.save:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.updateDetails button.save:active {
    transform: translateY(0);
}

.updateDetails button.save:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 1;
}

.updateDetailsMsg {
    display: block;
    margin-top: 12px;
    font-size: small;
    font-weight: 500;
    text-align: center;
    font-family: Nunito-Medium;
}

.updateDetailsMsg.success {
    color: #28a745;
}

.updateDetailsMsg.error {
    color: #dc3545;
}

@media (max-width: 600px) {
    .modal {
        padding: 10px 0;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }

    .close_profile_pic_modal {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }

    #profilePicModalImg {
        max-width: 90%;
    }
}

/* Report Issue Modal Styles */
#reportIssueModal .modal-content {
    max-width: 500px;
}

#reportIssueModal .close_report_issue_modal {
    background-color: red;
    color: white;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reportIssueModal .modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-family: Nunito-Bold;
    font-size: 22px;
}

#reportIssueModal .form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

#reportIssueModal .form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
    letter-spacing: 0.5px;
}

#reportIssueModal .form-control {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Nunito-Medium;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s ease;
    line-height: 1.6;
}

#reportIssueModal .form-control:focus {
    outline: none;
    box-shadow: none;
}

#reportIssueModal .char-count {
    font-size: x-small;
    color: #808080;
    margin-top: 10px;
    font-family: Nunito-Medium;
}

.report-form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.report-form-buttons button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: Nunito-Bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

.report-form-buttons .cancel-btn {
    background-color: #dfdfdf;
    color: #333;
}

.report-form-buttons .cancel-btn:hover {
    background-color: #e8e8e8;
}

.report-form-buttons .submit-btn {
    background-color: var(--theme-color-light);
    color: white;
    font-size: small;
}

.report-form-buttons .submit-btn:hover:not(:disabled) {
    background-color: var(--theme-color-dark);
    transform: translateY(-2px);

}

.report-form-buttons .submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.report-form-buttons .submit-btn:disabled {
    background-color: #cccccc;
    color: #777777;
    cursor: not-allowed;
    border: none;
}

.report-msg {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    font-family: Nunito-Medium;
    padding: 10px;
    border-radius: 6px;
    background-color: var(--theme-color-bg-light);
    color: var(--theme-color-light);
}

.report-msg.success {
    background-color: #d4edda;
    color: #155724;
}

/* My Reports Modal */
#myReportsModal .modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    min-height: 500px;
    ;
}

#myReportsModal .modal-content h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #333;
    font-family: Nunito-Bold;
    font-size: 22px;
}

.reports-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 8px;
}

.reports-container.empty {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    font-family: Nunito-Medium;
}

.close_my_reports_modal {
    background-color: red;
    color: white;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reports-container::-webkit-scrollbar {
    width: 2px;
}

.reports-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.reports-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.reports-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.report-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.report-id {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-family: Nunito-Bold;
    font-size: 13px;
}

.report-title {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-family: Nunito-Bold;
    font-size: 15px;
}

.report-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-family: Nunito-Bold;
}

.report-status.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.report-status.resolved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.report-status.in-progress {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #17a2b8;
}

.report-status.rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.report-message {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    font-family: Nunito-Medium;
}

.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.report-date {
    font-size: 12px;
    color: #6f6f6f;
    font-family: Nunito-Medium;
}

.report-delete-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-delete-btn:hover {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--danger-color);
    transform: scale(1.1);
}

.report-delete-btn:active {
    transform: scale(0.95);
}