@import url('https://fonts.googleapis.com/css2?family=Poppins');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display:flex;
    justify-content: center;
    align-items:baseline;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow-x: hidden;
}

/* Data stream animation background */
.data-stream {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.8;
    color: #fff;
    pointer-events: none;
    z-index: 0;
}

.stream-column {
    position: absolute;
    top: -100%;
    white-space: nowrap;
    animation: stream 15s linear infinite;
}

.stream-column:nth-child(1) { left: 5%; animation-duration: 12s; }
.stream-column:nth-child(2) { left: 15%; animation-duration: 18s; animation-delay: 2s; }
.stream-column:nth-child(3) { left: 25%; animation-duration: 14s; animation-delay: 4s; }
.stream-column:nth-child(4) { left: 35%; animation-duration: 16s; animation-delay: 1s; }
.stream-column:nth-child(5) { left: 45%; animation-duration: 13s; animation-delay: 3s; }
.stream-column:nth-child(6) { left: 55%; animation-duration: 17s; animation-delay: 5s; }
.stream-column:nth-child(7) { left: 65%; animation-duration: 15s; animation-delay: 2s; }
.stream-column:nth-child(8) { left: 75%; animation-duration: 19s; animation-delay: 4s; }
.stream-column:nth-child(9) { left: 85%; animation-duration: 14s; animation-delay: 1s; }
.stream-column:nth-child(10) { left: 95%; animation-duration: 16s; animation-delay: 3s; }

@keyframes stream {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

header {
    position: fixed;
    top: 0;
    margin: auto;
    width: 100%;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);

}

.logo {
    height: 50px;
    user-select: none;
    
}

a {
    position: relative;
    font-size: 1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .5s;
}

a:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}

.btnLogin {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
    margin-left: 40px;
    transition: .5s;
}

.btnLogin:hover {
    background: #fff;
    color: #0e0135b9;
}

.toggle_btn {
    color: #fff;
    font-size: 2rem;
    display: none;
    cursor: pointer;

}

.message {
    color: #fff;
    padding: 10px;
    text-align: center;
    align-self:center;
    position: relative;
    width: 45%;
    background: #fff5;
    border: 2px solid #fff8;
    border-radius: 10px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: none;
    margin-top: 80px;
    z-index: 10;
}


footer {
    color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 50px;
    text-align: right;
    z-index: 99;
}

.card {
    display: none;
    color: #fff;
    padding: 30px;
    padding-top: 80px;
    align-self: center;
    text-align: justify;
    position: relative;
    width: 80%;
    margin-top: 150px;
    background: transparent;
    border: 2px solid #fff8;
    border-radius: 10px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.contact {
    margin-top: 0;
    width: 450px;
}
.ligjerata {
    padding-top: 20px;
}

.profile_pic {
    position: absolute;
    top:-80px;
    height:140px;
    border: 2px solid #fff8;
    border-radius:50%;
}
.wrapper {
    color: #fff;
    margin-top: 150px;
    position: relative;
    width: 380px;
    height: 370px;
    background: transparent;
    border: 2px solid #fff8;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */
    /* transition: height .2s ease; */
}

.wrapper .form-box {
    width: 100%;
    padding: 40px;
}


.search {
    position: absolute;

}
.results {
    position: absolute;
    display: none;
    width: 50%;
    min-width: fit-content;
    top:150px;
    overflow: hidden;



}


.form-box h2 {
    text-align: center;
}

.input-box {
    position:relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid #fff;
    margin:30px 0;
}

.input-box label {
position: absolute;
top:50%;
left: 5px;
transform: translateY(-50%);
font-size: 1em;
font-weight: 500;
pointer-events: none;
transition: 0.5s;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: -5px;
}

.input-box input {
    width:100%;
    height:100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #fff;
    font-weight: 600;
    padding: 0 35px 0 5px;
}
.input-box .icon {
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    line-height: 57px;
}

.koll-provim {
    font-size: 1em;
    color: #fff;
    font-weight: 500;
    margin: -15px 0 15px;
    display: flex;
    justify-content: space-between;
}

.koll-provim label input {
    accent-color: #0e0135b9;
    margin-right: 3px;
}

.btn {
    width:100%;
    height: 45px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
    transition: 0.5s;
}

.btn:hover {
    background: #fff ;
    color: #0e0135b9;
}

/* Dropdown menu */

.dropdown_menu {
    display: none;
    position: absolute;
    right: 3rem;
    top: 70px;
    height: 0px;
    width: 250px;
    background: #0e0135b9;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 5px;
    overflow: hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.open {
    height: 315px;
}

.dropdown_menu a {
    margin-left: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown_menu .btnLogin {
    margin-left: 0;
    width: 100%;

}
#search-form {
    display:none;
}


#txtHint {
    display: flex;
    width: 100%;
    justify-content: center;
    color: red;
}

/* tabela */

.results table {
    width: 100%;
    color: #fff;
    margin: auto;
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    overflow: hidden;
}

.results td, .results th {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.results tr {
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.results tr:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.results th {
    padding-top: 15px;
    padding-bottom: 15px;
    text-align: left;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #667eea;
}

.results tr:first-child th {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: #fff;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
}

.results tr:last-child td {
    border-bottom: none;
}

.errorMsg {
    color: #fff;
    background: rgba(255, 82, 82, 0.15);
    padding: 30px;
    text-align: center;
    width: 100%;
    border: 2px solid rgba(255, 82, 82, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px 0 rgba(255, 0, 0, 0.2);
    font-weight: 500;
}

.btnSmall {
    width: 120px;
    height: 45px;
    margin-top: 15px;
    float: right;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px 0 rgba(31, 38, 135, 0.2);
}

.btnSmall:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(31, 38, 135, 0.4);
}

/* Responsive design */

@media(max-width:840px) {
    nav {
        display: none;
    }

    .toggle_btn {
        display: block;
    }

    .dropdown_menu {
        display: block;
    }
    .card {
        width: 90%;}
    
    .results {
        width: 95%;
     
    }

}

@media(max-width:576px) {
    .card {font-size: small;
    width: 90%;}
    .dropdown_menu {
        left: 2rem;
        width: unset;
    }
    .wrapper {font-size:small; width: 320px;}
    .results {
        width:95%;
        font-size: x-small;}
    .btnSmall {
        width: 80px;
        height: 25px;
        margin-top: 7px;
    }
}
