/*
    DEMO STYLE
*/

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";
body {
    font-family: Roboto, Helvetica, sans-serif;
    background: #fafafa;
    scroll-behavior: smooth;
}

p {
    font-family: Roboto, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 5px;
    background-color: #fff;
    border: none;
    border-radius: 0;
    /* margin-bottom: 40px; */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

tbody, td {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 10px 5px !important;
}

tfoot, th, thead {
    font-size: 0.75rem;
}

.operations-icon {
    padding: 0px 5px !important;
}

.text-button {
    font-size: small;
    font-weight: 500;
}

.clickable-text {
    background-color: #198754 !important;
    color: white !important;
    font-weight: 600;
    cursor: pointer;
    text-shadow: 2px 1px 2px rgba(0, 0, 0, 0.4);
}

.icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit; /* takes color from parent */
  }

.icon-btn:focus,
.icon-btn:active {
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 240px;
    max-width: 250px;
    background: #1b1a1ae3;
    color: #fff;
    transition: all 0.3s;
    font-size: small;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 18px;
    background: black;
}

#sidebar ul.components {
    padding: 10px 13px;
    border-bottom: 1px solid #47748b;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 8px 2px;
    font-size: 0.85rem;
    display: block;
    color: white;
}

#sidebar ul li a:hover {
    color: #7386D5;
    /* background: #fff; */
}



a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    /* padding-left: 30px !important; */
    /* background: black; */
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #1b1a1ae3;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    @media (max-width: 768px) {
        width: 103%;
        min-width: -webkit-fill-available;
    }
    @media (min-width: 769px) {
        width: 100%;
    }
    /* padding: 20px; */
    min-height: 100vh;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebarCollapse span {
        display: none;
        
    }
}

/* ---------------------------------------------------
    BOOKING MANAGEMENT
----------------------------------------------------- */

.calendar-nav {
    text-align: center;
    margin-bottom: 20px;
}

.calendar-nav span {
    font-size: 20px;
    font-weight: 600;
    margin: 0 20px;
    color: #2c3e50;
}

.calendar-nav button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-nav button:hover {
    background-color: #2980b9;
}

/* Container to allow horizontal scroll on small screens */
.calendar-wrapper {
    overflow-x: auto;
}

.calendar {
    width: 100%;
    min-width: 600px;
    max-width: 1000px;
    margin: auto;
    border-collapse: separate;
    border-spacing: 10px;
    background: transparent;
}

.calendar th {
    background-color: #ecf0f1; /* subtle gray contrast */
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 0;
    text-align: center;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.calendar td {
    vertical-align: top;
    background-color: #ffffff;
    border-radius: 16px;
    height: 130px;
    padding: 10px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.calendar td:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
}

.date {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.bookings {
    font-size: 13px;
    color: #2980b9;
    margin-top: 6px;
    max-height: 60px;
    overflow-y: auto;
    line-height: 1.3em;
}

.bookings::-webkit-scrollbar {
    width: 5px;
}
.bookings::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 5px;
}

.add-booking-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background-color: #2ecc71;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-booking-btn:hover {
    background-color: #27ae60;
    transform: scale(1.1);
}

.add-booking-btn i {
    pointer-events: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.calendar td.today {
    background-color: #ffe6cc; /* light orange */
    border: 2px solid #f39c12;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.5);
}

/* 📱 Responsive Design */
@media screen and (max-width: 768px) {
    .calendar {
        border-spacing: 6px;
    }

    .calendar td {
        height: 100px;
        padding: 8px;
    }

    .date {
        font-size: 14px;
    }

    .bookings {
        font-size: 12px;
    }

    .add-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .calendar-nav span {
        font-size: 16px;
    }

    .calendar-nav button {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ---------------------------------------------------
    BOOKING - MONTH VIEW
----------------------------------------------------- */
.booking-image {
    background-size: cover; 
    background-position: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.today {
    background-color: #505050 !important;
    border: 3px solid #ffbb45 !important;
    color: #FFF;
    font-weight: bold;
}

.today:hover {
    background-color: #303030 !important;
    border-color: #ffa201 !important;
    cursor: pointer;
}

.today .date-circle {
    background-color: rgba(255, 199, 114, 0.2) !important;
    color: #fff !important;
}

.other-date {
    background-color: #505050 !important;
    color: #FFF;
}

.other-date:hover {
    background-color: #303030 !important;
    cursor: pointer;
}

.other-date .date-circle {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: #fff !important;
}

.booking-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 10px;
}

/* For uploaded booking images */
.booking-img-uploaded {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* For default "no photo" image */
.booking-img-default {
    max-width: 100px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
}

/* Adjust the table cell to give proper height */
.image-cell {
    width: 25%;
    height: 120px;
    padding: 0;
    overflow: hidden;
}

.text-shadow {
    text-shadow: 1px 1px 2px rgba(0.4, 0.4, 0.4, 1);
}

.floating-btn {
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hide floating button container by default */
.floating-btn-container {
    position: fixed;
    bottom: 125px; /* adjust as needed */
    right: 20px;
    z-index: 1050;
    
    /* start hidden */
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none; /* disable interaction when hidden */
    
    /* animate visibility */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* When visible, add the .show class */
.floating-btn-container.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Style for the new toggle floating icon */
.floating-toggle-btn {
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 1050;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

#searchBookingBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------------------
    SEARCH BOOKING
----------------------------------------------------- */

/* Remove border & shadow on focus */
#searchInput:focus,
#clearSearch:focus {
    outline: none !important;
    box-shadow: 0 0 0 .02rem grey !important;
    border-color: #ced4da !important;
    /* keep same border as normal state */
}

/* sidebar and results look */
.search-result-card {
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.search-result-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    background: #f8fbff;
}

.search-result-card:active {
    transform: translateY(-1px);
}

.img-box.default {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-details.small {
    font-size: 0.9rem;
}

@media (max-width:576px) {
    .img-box {
        width: 72px !important;
    }

    .booking-details.small {
        font-size: 0.85rem;
    }
}

/* chevron rotate for filters toggle */
#toggleFiltersBtn.expanded {
    transform: rotate(180deg);
}


/* ---------------------------------------------------
    NAVIGATION BAR
----------------------------------------------------- */

.nav-tabs .nav-link {
    color: #000;
    font-size: 0.9rem; /* smaller text (default ~1rem) */
    font-weight: 500;
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
}

.nav-tabs .nav-link.active {
    background-color: #ffc107; /* Change to your preferred color */
    color: #000 !important;
    border-color: #ffc107 #ffc107 #fff;
}

/* Optional: Make non-active tabs have consistent hover effect */
.nav-tabs .nav-link:hover {
    background-color: #e9ecef;
    color: #000;
}

.nav-pills .nav-link {
    border-radius: .25rem .25rem 0 0 !important; /* Top rounded */
    font-size: 0.9rem; /* smaller text (default ~1rem) */
    font-weight: 500;
    color: #000;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd !important; /* or your theme color */
    color: #fff !important;
}