html {
    scrollbar-gutter: stable;
}
  
body {
    background-color: #f4e9db; /* Sandy beige background */
    color: #333333; /* Dark charcoal text color */
}

header {
    background-color: #008080; /* Teal header background */
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #ffffff; /* White text for header */
}

.topbar {
    text-align: end;
}

.dropdown {
    background-color: rgb(0 123 123 / 84%);
}

.dropdown-item:hover {
    background-color: #00a3a3; /* Caribbean turquoise */
}

.dropdown-header {
    font-weight: bold;
}

.dropdown-subheader {
    display: block;
    padding: 0 var(--bs-dropdown-header-padding-x);
    margin-bottom: 0;
    font-size: .875rem;
    color: var(--bs-dropdown-header-color);
    white-space: nowrap;
}

.dropdown-item {
    font-size: .9rem;
    cursor: pointer;
}

#menu-notifications {
    max-height: unset !important;
}

.form-check {
    display: flex;
    flex-direction: column;
    align-items:flex-end;
}

/* CSS for the side panel */
.side-panel {
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden */
    width: 25%;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1050; /* Above dropdown but below other elements */
}

.side-panel-content {
    padding: 20px;
    overflow-y: auto;
    max-height: 100%;
}

.side-panel.open {
    right: 0; /* Show panel */
}

#side-panel-notifications .dropdown-item {
    padding: 10px 15px;
}


.btn-group, .center-drop {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn-group .btn {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 10px 15px;
    background-color: #00a3a3; /* Caribbean turquoise */
    color: #ffffff; /* White text */
    border-color: #007f7f; /* Darker teal border */
    border-radius: 8px; /* Fully rounded corners */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-group .btn:hover,
.btn-group .btn.active {
    background-color: #ff6f61; /* Coral color for hover and active */
    color: #ffffff;
    border-color: #ff4f41;
    transform: translateY(-2px);
    border-radius: 8px; /* Ensure rounded corners on hover and active states */
}

.btn-group>.btn-group:not(:last-child)>.btn, .btn-group>.btn.dropdown-toggle-split:first-child, .btn-group>.btn:not(:last-child):not(.dropdown-toggle), .btn-group>:not(.btn-check:first-child)+.btn {
    border-radius: 8px;
}

/* Style the dropdown labels */
label.col-form-label {
    color: #007f7f; /* Teal color for labels to match the theme */
    font-weight: bold; /* Make the labels bold for better visibility */
}

/* Style the form-select dropdown */
.form-select,
.form-select option {
    background-color: #00a3a3; /* Caribbean turquoise */
    color: #ffffff; /* White text */
    border-color: #007f7f; /* Darker teal border */
    border-radius: 8px; /* Rounded corners to match the theme */
    padding: 8px; /* Padding for a better look */
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Smooth transition */
    min-width: 150px;
}

/* Change the dropdown appearance on focus */
.form-select:focus {
    background-color: #009999; /* Slightly darker teal when focused */
    border-color: #005f5f; /* Darker border when focused */
    box-shadow: 0 0 5px rgba(0, 128, 128, 0.5); /* Add a soft shadow on focus */
}

/* Customize the dropdown hover state */
.form-select:hover {
    background-color: #008b8b; /* Darker teal on hover */
    border-color: #006666; /* Darker border on hover */
}

/* Specific styling for cruise day dropdown */
#cruise_day.form-select {
    background-color: #00a3a3; /* Same background color for cruise day dropdown */
    color: #ffffff;
}

/* Style the dropdown arrow */
.form-select::after {
    border-color: #ffffff; /* White arrow to match the text color */
}

.form-container {
    text-align: center;
}

/* Adjust the label for better alignment */
.col-form-label {
    margin-right: 10px; /* Space between label and dropdown */
}

.card {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 6px 12px rgba(0, 105, 148, 0.3); /* Initial shadow */
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Smooth transition for shadow and lift */
    transform: translateY(0); /* Start with no translation */
}

.card-title,
.card-text {
    color: #333333;
}

.card:hover {
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 131, 179, 0.4); /* Larger shadow on hover */
    transform: translateY(-10px) scale(1.02); /* Lift up and slightly scale up */
}

.card-title {
    height: 2.5em; /* Ensures space for two lines */
    line-height: 1.25em; /* Adjust line height to control spacing */
    overflow: hidden; /* Hide any overflowing text */
    white-space: normal; /* Allow wrapping */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to two lines */
    -webkit-box-orient: vertical;
}

.card-img-top {
    height: 224px;
    object-fit: cover;
}

.card-footer {
    margin-top: 10px;
    color: #999999; /* Softer text color for footers */
}

.constant-tilt-shake {
    animation: tilt-shaking 0.3s infinite;
}

@keyframes tilt-shaking {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(.5deg); }
    50% { transform: rotate(0eg); }
    75% { transform: rotate(-.5deg); }
    100% { transform: rotate(0deg); }
}

.modal-content {
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table {
    background-color: #ffffff;
    color: #333333;
}

.table th,
.table td {
    border-color: #dddddd;
}

.return-to-top {
    background-color: #00a3a3; /* Caribbean turquoise */
    color: #ffffff;
    border: none;
}

.return-to-top:hover {
    background-color: #007f7f; /* Darker teal */
}

.higher-price {
    background-color: #ff6f61; /* Soft coral background */
    color: #ffffff; /* White text */
    font-weight: bold;
    padding: 5px;
    border-radius: 3px;
}

.lower-price {
    background-color: #2e8b57; /* Sea green background */
    color: #ffffff; /* White text */
    font-weight: bold;
    padding: 5px;
    border-radius: 3px;
}
