:root {
    --primary-color: #fff;
    /* Blue */
    --secondary-color: #023047;


    /* Green */
    --tertiary-color: #118ab2;

    --fourth-color: #219ebc;

    --text-color: #333;

    --extra-color1: #ffbb00;
    /* Dark Gray */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 0.8rem;
}

.noto-sans-display-para {
    font-family: "Noto Sans Display", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.noto-sans-display-head {
    font-family: "Noto Sans Display", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

body {
    font-family: "Noto Sans Display", serif;
    display: flex;
    background-color: #e0e0e0;
    flex-direction: column;
}

th, td, p {
    font-size: 0.9rem;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.1rem;
}

h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

h6 {
    font-size: 0.9rem;
    font-weight: 600;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 15px;
}

.logo-container {
    display: flex; 
    gap: 10px;
    justify-content: center; 
    align-items: center;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
}

.logo-container img {
    max-width: 100%; /* Ensure it scales within the container */
    max-height: 100%; /* Ensure it fits */
    object-fit: contain; /* Maintain aspect ratio */
}

main {
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
    min-height: 70vh;
}

footer {
    margin-top: 20px;
    background: var(--secondary-color);;
    color: white;
    text-align: center;
    padding: 15px;
    min-height: 200px;
}

.custom-select-wrapper {
    position: relative;
    width: 200px;
}

.custom-select {
    font-size: 1rem;
    width: 100%;
    padding: 10px;
    color: #000000;
    border: 1px solid #ddd;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

option {
    font-size: 1rem;
}

.custom-select-wrapper::after {
    content: '›';
    position: absolute;
    right: 10px;
    top: 50%;
    font-weight: 600;
    transform: translateY(-50%) rotate(90deg);
    font-size: 18px;
    color: #000;
    pointer-events: none;
}

.custom-select:focus {
    border-color: #a8a8a870;
    outline: none;
}

.custom-select:hover {
    border-color: #888;
}

.custom-select option {
    padding: 10px;
}

.custom-select option:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.voyage-details-head {
    background-color: #118ab2;
    color: white;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background-color: #fff;
    width: 100%;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
}

.tab.active {
    border-bottom: 3px solid var(--fourth-color);
}

.Voyage-label-container{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    
}

.voyage-label{
    padding: 0.5rem;
    flex:1;
    border: 1px solid #ccc;
    max-width: 130px;
    font-size: 12px;
    text-align: center;
    border-radius: 5px;
    box-sizing: border-box;
    cursor: pointer;
    transition: 0.3s scale;
    
}

.voyage-label p{
    font-size: 10px;
}

.voyage-label.active{
    color: #000;
    border: none;
    outline: 2px solid var(--text-color);
}

.voyage-label:hover{
    scale: 1.03;
}

.content {
    display: none;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    margin-left: 10vw;
    margin-right: 10vw;
    max-width: 1280px;
    width: 70%;

}

.content.active {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.main-layout {
    display: flex;
    flex: 1;
    gap: 20px;
    width: 100%;
}

.right {
    flex: 7;
    display: flex;
    flex-direction: column;
    gap: 10px;
    aspect-ratio: 1 / 1;

}

.canvas-container{
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    background-image: url('../images/mapBackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.disclaimer{
    position: absolute;
    top: 0;
    left: 0;
    width: 40vw;
    font-size: 12px;
    color: rgb(255, 136, 0);
    padding: 10px;
}

canvas {
    width: 100%;
    height: 100%;
}

.left {
    display: flex;
    gap: 20px;
    aspect-ratio: 4 / 3;
    flex-direction: column;
    flex: 3;
    padding: 20px;
    border-radius: 5px;
    overflow-y: auto;
    min-width: 300px;
    min-height: 500px;
}

.trip-list {
    padding: 20px;
}

.tile-wrapper {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: start;
    align-items: start;
    margin: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: start;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    min-width: 100px;
    text-align: center;

}

.tile h6 {
    width: 100%;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: left;
    background-color: #e2e2e2;
    padding: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.tile p {
    padding: 5px;
    font-size: 12px;
}


/*Voyage details Table*/
.table-container {
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
table {
    border-collapse: separate; /* Prevents borders from merging */
    border-spacing: 0; /* Ensures no extra spacing */
    border-radius: 10px;
    overflow: hidden; /* Ensures corners remain rounded */
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    color: var(--text-color)
}

thead th{
    font-family: "Noto Sans Display", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    background-color: var(--secondary-color);
    color: white;
    
}

tr:last-child td {
    border-bottom: none;
}

td:first-child {
    color: #333;
    width: 40%;
}



/*Voyage cmplete*/

.complete-voyage-disaply-container{
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    width: 100%;
}
.complete-voyage-disaply-container h2{
    text-align: center;
}

.checkpoints-wrapper{
    display: flex;
    justify-content: space-around;

}

@media (max-width: 1100px) {
    .main-layout {
        flex-direction: column;
    }

    .left {
        order: -1;
        width: 100%;
        aspect-ratio: unset ;
        padding: 10px;
    }

    .right {
        min-width: 0;
        width: 100%;
        padding: 10px;
        /* Flexible width */
    }
    .content{
        margin-left: 3vw;
        margin-right: 3vw;
        width: 95%;
    }

    .disclaimer{
        width: 70vw;
    }
}