/* Basics */
* {
    scrollbar-width: none;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    -moz-scrollbar-width: none;
}

html,
body {
    font-family: Arial, sans-serif;
    height: 100%;
}

h1 {
    margin-bottom: 10px;
    font-family: bangla;
}

/* main compertment */
header {
    background-color: #333;
    color: #fff;
    text-align: center;
    font-size: 18px;
    padding: 5px;
    font-family: yoo, Arial, Helvetica, sans-serif;
}

main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    width: 100%;
    overflow: scroll;
    margin: 10px;
}

nav#queryies {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    margin: 0;
    font-size: 12px;
    width: 40%;
    min-width: 200px;
    height: 80vh;

}

nav#app {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 55%;
    min-width: 450px;
    margin: 0;
}

nav#queryies table {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-size: 12px;
}


nav#queryies .langCont {
    width: 85%;
}

nav#queryies #search-box {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    box-sizing: border-box;
}

nav#queryies #language-select {
    width: auto;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgb(var(--tilt-dark));
    display: none;
    background: rgba(var(--tilt-rgb), 0.3);
    z-index: 1;
}

nav#queryies .language-option {
    padding: 8px;
    cursor: pointer;
}

nav#queryies .language-option:hover {
    background-color: rgb(var(--tilt-rgb), 0.3)
}

.container {
    background-color: rgb(var(--tilt-rgb), 0.3);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
    border-radius: 20px;
    height: max-content;
}

.container .form-container {
    height: 600px;
    width: 50%;
    transition: 0.6s ease-in-out;
}

.overlay-container {
    position: absolute;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: 200%;
    height: 100%;
    background: linear-gradient(-75deg, #8779b2, #0052a5, #ada1d7);
    border-radius: 80px 2px 2px 80px;
    transition: 0.6s ease-in-out;
}

.form-container form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
}

.container.right-panel-active .overlay {
    transform: translateX(-50%);
    border-radius: 2px 80px 80px 2px;
}

.container .overlay>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    padding: 40px;
    transition: transform 0.6s ease-in-out;
    /* background: rgba(255, 255, 255, 0.8); */
}

.form-container input {
    background-color: #f9f9f9;
    border: none;
    padding: 12px;
    margin: 8px 0;
    width: 100%;
}

.form-container input:focus {
    background-color: #f3f3f3;
}

.form-container h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.form-container h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.form-container select {
    background-color: #f9f9f9;
    border: none;
    padding: 12px;
    margin: 8px 0;
    width: 100%;
}

.form-container select:focus {
    background-color: #f3f3f3;
}

.container.right-panel-active .form-container.sign-up-container {
    transform: translateX(-100%);
}

.container.right-panel-active .form-container.sign-in-container {
    transform: translateX(0);
}

.container .form-container.sign-in-container {
    transform: translateX(100%);
}

.container .form-container.sign-up-container {
    transform: translateX(0);
}

.form-container .project {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#app button {
    border-radius: 20px;
    border: 1px solid rgb(var(--tilt-dark));
    background-color: var(--tilt);
    color: #FFFFFF;
    font-weight: 700;
    padding: 10px 20px;
    transition: transform 80ms ease-in;
    max-width: 80%;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#app button:active {
    transform: scale(0.95);
}

#app button:focus {
    outline: none;
}

#app button.ghost {
    background-color: transparent;
    border-color: #FFFFFF;
}

#app .overlay-panel h1 {
    font-weight: bold;
    margin: 0;
}

#app .overlay-panel p {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 10px 10px;
    font-weight: 400;
    font-family: exo, Times, serif;
}

/* Glassmorphism effect on the table only */
.patrol-container {
    backdrop-filter: blur(10px);
    background: linear-gradient(75deg, #584e73, #004080);
    /* Frosted background */
    border-radius: 12px;
    padding: 20px;
    width: 80%;
    height: 80%;
    margin: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow-y: scroll;
}

/* Table Styling */
.patrol-house {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    color: white;
    border-radius: 10px;
    overflow: hidden;
}

.patrol-house th {
    padding: 12px;
    text-align: left;
}

/* Patrol Entry Row */
.patrol-house td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Row */
.patrol-entry {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

/* Two-Line Structure */
.patrol-entry .top {
    font-size: 15px;
    font-weight: bold;
    color: #6ab7ff;
}

.patrol-entry .bottom {
    font-size: 12px;
    color: #ccc;
}

.patrol-entry a {
    text-decoration: none;
    font-weight: bold;
    color: #ff8c42;
}

/* Hover Effects */
.patrol-entry:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    font-size: 14px;
    padding: 5px;
    font-family: 'exo', Arial, Helvetica, sans-serif;
}

@media screen and (max-width: 600px) {
    main {
        width: 100vw;
    }

    nav#app {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100%;
        margin: 0;
        scale: 0.9;
        min-width: 0px;
    }

    div.container {
        background-color: #fffafa;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
        position: relative;
        overflow: hidden;
        width: 90%;
        display: flex;
        align-items: center;
        justify-content: space-around;
        flex-direction: column;
        border-radius: 5px;
        height: 90%;
        min-height: max-content;
    }

    div.container .form-container {
        background-color: #fffafa;
        width: calc(100% - 20px);
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        height: 50%;
        transition: 0.6s;
    }

    div.overlay-container {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background-color: #fffafaaa;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        transition: transform 0.6s ease-in-out;
        z-index: 100;
        overflow: hidden;
    }

    div.container.right-panel-active .overlay-container {
        transform: translateY(-100%);
    }

    div.overlay {
        color: #fff;
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-around;
        flex-direction: column;
        width: calc(100% - 20px);
        padding: 0 10px;
        height: 200%;
        background: linear-gradient(-15deg, #8779b2, #0052a5, #ada1d7);
        border-radius: 40px 40px 2px 2px;
        transition: 0.6s ease-in-out;
    }

    div.form-container form {
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
    }

    div.container.right-panel-active .overlay {
        transform: translateY(-50%);
        border-radius: 2px 2px 40px 40px;
    }

    div.overlay-panel {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0;
        transition: transform 0.6s ease-in-out;
    }

    .container .overlay>div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
        padding: 10px;
        transition: transform 0.6s ease-in-out;
        /* background: rgba(255, 255, 255, 0.8); */
    }
}

#deleted {
    width: calc(96% - 40px);
    margin: 2%;
    background: #fff;
    padding: 20px;
    border: 2px solid var(--tilt);
    border-radius: 8px;
    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.2);
}

#deleted .patrol-entry {
    background: #F8F8FF;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid var(--tilt);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

#deleted .patrol-entry:hover {
    background: rgb(var(--tilt-rgb), 0.3);
    transform: scale(1.02);
}

#deleted a {
    text-decoration: none;
    font-weight: bold;
    color: #6b6bff;
    font-size: 16px;
    font-family: 'exo', Arial, Helvetica, sans-serif;
}

#deleted .top a:hover {
    color: rgb(var(--tilt-dark), 0.8);
}

#deleted .details {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
    font-style: italic;
    padding: 0 5px;
}

@media screen and (ma-width: 300px) {
    #app {
        scale: 0.7;
    }

    .container .overlay>div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
        padding: 10px;
        transition: transform 0.6s ease-in-out;
        /* background: rgba(255, 255, 255, 0.8); */
    }

    #app button.ghost {
        padding: 0%;
        text-align: center;
    }
}

@media (max-width:800px) {

    nav#queryies,
    nav#app {
        width: 90%;
        min-width: 0px;
    }

    main nav button {
        padding: 10px 15px;
    }

    header {
        min-height: fit-content;
        height: auto;
    }

    h1 {
        font-family: bangla, Arial, Helvetica, sans-serif;
    }

    main nav form input,
    main nav form select {
        padding: 5px 7px;
    }

    #deleted {
        padding: 15px;
        width: calc(96% - 30px);
    }

    #deleted .patrol-entry {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 2%;
        flex-wrap: wrap;
    }

    #deleted .patrol-entry:hover {
        transform: scale(0.92);
    }

    #deleted a {
        font-size: 14px;
    }
}