* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: white;
}
li {
    padding-top: 5px;
    padding-bottom: 5px;
    border-top: 1px solid #ccc;
    border-bottom: 1pm solid #ccc;
    list-style-type: none;
}
a {
    color: blue;
}
.switch {
    position: relative;
    float: right;
    display: inline;
    width: 60px;
    height: 34px;
    margin-top: -25px;
}
.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
.custom-alert {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #333;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
}
.custom-alert.show {
    opacity: 1;
    pointer-events: auto;
}
input:checked + .slider {
    background-color: #2196F3;
}
input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}
.raquo
{
    list-style-image: url("/app/images/list_bullet_raquo.gif");
    list-style-position:inherit;
    text-indent: 1em;
} 
/* Sidebar */
.sidebar {
    width: 200px;
    padding: 10px;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100%; /* Ensure it grows with content */
    position: fixed;
    top: 0;
}
.sidebar h2 {
    padding: 20px;
    font-size: 20px;
    background-color: black;
    /* text-align: center; */
}
.sidebar a {
    padding: 15px 0;
    text-indent: 10;
    display: block;
    color: white;
    text-decoration: none;
    font-size: 16px;
}
.sidebar a:hover {
    background-color: #3b4d58;
}
/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    width: 30px;
    z-index: 1100;
    position: fixed;
    top: 15px;
    left: 15px;
}
.hamburger-menu span {
    height: 3px;
    width: 100%;
    background-color: black;
    margin: 4px 0;
    transition: 0.4s;
}
.top-nav {
    background-color: #f4f6f9;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ddd;
    position: relative; 
    height: 40px;
}
.search {
    width: 300px;;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.profile-icon {
    padding: 5px;
    position: absolute;
    right: 20px;
    background-image: url('/app/images/logoSm.png');
    background-size: cover;
    background-position: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}
.dashboard-icon {
    background-image: url('/app/images/navigation/today.png');
    background-size: cover;
    background-position: center;
    background-color: black;
    width: 30px;
    height: 30px;
    overflow: hidden;
}
.logo {
    width: 250px;
    background-color: black;
}
.mapSearchResults {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #f4f6f9;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
    display: none;
}
.mapSearchResults.active {
    display: block;
}
.mapSearchResults .result-item {
    padding: 10px;
    height: 25px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: blue;
}
.mapSearchResults .result-item:hover {
    background-color:rgb(0, 0, 246);
}
/* Main Content */
.main-content {
    margin-left: 200px; /* Sidebar width */
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}
.cards {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
}
.card {
    flex: 1 1 calc(33% - 40px);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-5px);
}
.card h3 {
    padding-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}
.card p {
    font-size: 14px;
    color: #666;
}
.card li {
    color: black;
}
.card a {
    color: blue;
}
.card a:hover {
    background-color: #f0f0f0; 
    cursor: pointer;
    text-decoration: underline;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
}
.back-button-wrapper {
  display: block;
  width: fit-content;
  margin: 10px 0;
}
.back-button {
    display: inline-block; /* prevent full-width stretch */
    width: 100px !important; /* force width */
    max-width: 100%; /* fallback */
    text-align: center;

    background-color: #f5f5f5;
    border: 1px solid #ccc;
    color: #333;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.back-button:hover {
    background-color: #e0e0e0;
    border-color: #aaa;
    color: #000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#add2BL {
    display: inline-block; /* prevent full-width stretch */
    width: 100px !important; /* force width */
    max-width: 100%; /* fallback */
    text-align: center;

    background-color: green;
    border: 1px solid #ccc;
    color: #fff;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.add2BL:hover {
    background-color: darkgreen;
    border-color: #aaa;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* Overlay for mobile menu */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}
button {
    display: inline-block;
    /* background-color: #0000ff;
    color:#ffffff; */
    /* border-radius: 8px; */
    text-align: center;
    font-size: 16px;
    margin: 5px 5px 5px 5px;
}
/* Trip CSS */
.landmark {
    width: 250px;
    padding: 7px 0 0 0;
    background: #2aaef5;
    border-radius: 5px;
    box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.29);
    font-family: Helvetica, Arial, sans-serif;
    transform-origin: 0 10px;
}
.landmark h1 {
    margin-top: 0;
    padding: 5px 15px;
    background: #2aaef5;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 300;
}
.landmark section {
    padding: 0 15px 5px;
    font-size: 14px;
    background: #2aaef5;
}
.landmark section p {
    margin: 5px 0;
    background: #2aaef5;
    color: rgba(255, 255, 255, 0.9);
}
.landmark section a {
    margin: 5px 0;
    background: #2aaef5;
    color: rgba(255, 255, 255, 0.9);
}
.landmark:after {
    content: "";
    position: absolute;
    top: 0px;
    left: -13px;
    width: 0;
    height: 0;
    margin-bottom: -13px;
    border-right: 13px solid #2aaef5;
    border-top: 13px solid rgba(0, 0, 0, 0);
    border-bottom: 13px solid rgba(0, 0, 0, 0);
}
.rounded-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    color: white;
    overflow: hidden;
}
.rounded-box .label {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}
.rounded-box .icon {
    width: 50%;
    height: 50%;
    object-fit: contain;
}
#loading {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 20px;
}

#loading h3 {
    margin: 0 0 10px 0;
}

#loading img {
    max-width: auto;
    max-height: 60%; /* Leave room for the text */
}
/* @media only screen and (max-width: 999px) {
    button {
        display: block;
        float: none;
        margin: 5px;
    }
} */
/* Responsive */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .main-content {
        margin-left: 0px;
    }
    .sidebar {
        position: fixed;
        top: 0;
        padding-left: 10px;
        left: -250px;
        height: 100%;
        z-index: 1050;
        width: 200px;
        transition: transform 0.3s ease;
    }
    .sidebar.active {
        transform: translateX(250px);
    }
    .sidebar h2 {
        padding-top: 60px;
    }
    .hamburger-menu {
        display: flex;
        background-color: #fff;
    }
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;

    }
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .card {
        flex: 1 1 100%;
    }
    .overlay.active {
        display: block;
    }
}
/* Desktop view */
@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0);
    }
    .hamburger-menu {
        display: none;
    }
}

/* For dark mode */
/* @media (prefers-color-scheme: dark) {
    .hamburger-menu span {
        background-color: white;
    }
} */

@media print {
    body { display:none; }
}