/* static/css/styles.css */
:root {
    --primary-color: #1f2937;
    --primary-hover: #1c2430b0;
    --background-color: #f3f4f6;
    --text-color: #1f2937;
    --border-color: #e5e7eb;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(to bottom, #dbeafe, #ffffff);
    color: var(--text-color);
    line-height: 1.5;

    font-weight: 350;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    position: relative;
}

.content-wrapper {
    flex: 1;
}

.squares-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Prevent interaction */
    z-index: -1;
}

.square {
    position: absolute;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    animation:
        moveSquare 10s infinite alternate ease-in-out,
        fade 5s infinite alternate;
    border-radius: 30%;
}

@keyframes moveSquare {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(50px) translateX(30px);
    }
}

@keyframes fade {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.4;
    }
}

.light-shield {
    stroke: rgba(0, 0, 0, 0.25);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.avatar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.avatar img {
    height: 24px;
    width: 24px;
    border-radius: 50%;
}

.avatar svg {
    width: 22px;
    height: 20px;
    position: absolute;
    transform: translateY(-17%);
}

.user-menu {
    display: none;
    position: absolute;
    right: 4%;
    top: 4.5%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
}

.user-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-menu a:hover {
    background-color: #f5f5f5;
}

.user-menu.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-links a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.8rem;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.25rem;
    outline: none;
    border: none;
    font-weight: 300;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--primary-hover);
}

.button-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.button-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

main {
    padding: 2rem 0;
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

.card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 0.6rem;
    font-weight: 350;
}

.card p {
    color: rgba(0, 0, 0, 0.562);
}

.list-svg {
    height: 18px;
    width: 18px;
    color: #fff;
    background-color: rgba(134, 236, 134, 0.829);
    margin-right: 4px;
    margin-bottom: -4px;
}

.price {
    font-weight: 800;
}

.text-grey {
    color: gray;
    font-size: 12px;
}

.pricing li {
    list-style-type: none;
    font-size: 15px;
}

/* Form styles */

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

label {
    position: absolute;
    transform: translateY(-53%);
    left: 7%;
    font-size: 12px;
    background-color: #fff;

    padding: 0 4px;
}

.input-container {
    width: 92%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.input-field {
    width: 90%;
    margin: 1rem auto;
    position: relative;
}

.input-container > .input-field > input {
    width: 85%;
}

input {
    width: 95%;
    border: 1.3px solid rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    height: 1.4rem;
    border-radius: 0.35rem;
    outline: none;
    transition: border-color 0.2s ease-in-out;
    color: rgb(81, 81, 81);
}

input:focus {
    border-color: rgba(0, 0, 0, 0.4); /* Slightly darker on focus */
}

.input-field input::placeholder {
    font-size: 10px;
}

#serial_no_match_feedback,
#surname_match_feedback {
    font-size: 10px;
    font-weight: 500;
    width: 125px;
    font-family: "roboto", sans-serif;
    position: absolute;
    left: 2%;
    transform: translateY(220%);
    height: 20px;

    position: absolute;

    bottom: 50%;
}

/* Utility classes */
.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.flex-items {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.grit-items {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 2rem;
}

footer {
    background-color: var(--background-color);
    margin-top: 1rem;
    padding: 1rem 0 0 0;
    position: relative;
}

.footer-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-container a {
    font-size: 0.6rem;
}

.footer-container a:hover {
    color: var(--primary-hover);
}

.footer-container p {
    font-size: 1.1rem;
    font-weight: 500;
}

.copyright {
    color: #858a90;
}

.footer-container > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    margin-bottom: 1rem;
    font-weight: 400;
    font-family: "poppins", sans-serif;
}

.system_operations > span {
    margin-bottom: 5px;
}

.system_operations > a {
    font-size: 0.9rem;
    text-decoration: none;
    color: #858a90;
    margin-top: 3px;
}

.legal-info a {
    text-decoration: none;
    font-size: 0.9rem;
}

.contact_us a {
    font-size: 0.9rem;
}

.legal-info,
.contact_us {
    position: relative;
    height: auto;
    display: flex;
}

.email,
.twitter {
    font-size: 0.6rem;
    position: relative;
    margin-bottom: 5px;
    margin-left: 11px;
}

.twitter > span > svg,
.email > span > svg {
    height: 1.1rem;
    width: 1.1rem;
    position: absolute;
    top: 25%;
    left: -11px;
    margin-top: -5px;
}

.legal-info a,
.contact_us a {
    margin-top: 3px;
    color: #858a90;
    text-decoration: none;
}

.handle,
.address {
    padding-left: 10px;
}

.footer > p {
    border-top: 0.3px solid #e5e7eb;
    text-align: center;
    font-size: 0.7rem;
    padding-top: 10px;
}

/* Responsive grid */
@media (min-width: 768px) {
    .grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3-cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-links a {
        font-size: 1rem;
    }
}

/* messages */
#message-container {
    position: fixed;
    top: 10%;
    right: -100%; /* Start off-screen */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    transition: right 0.5s ease-in-out;
    max-width: 80vw;
}

.alert {
    background-color: #007bff;
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    cursor: pointer;
}

/* Different colors for message types */
.alert-success {
    background-color: #28a745;
}
.alert-warning {
    background-color: #ffc107;
    color: black;
}
.alert-danger {
    background-color: #dc3545;
}
.alert-info {
    background-color: #17a2b8;
}

.close-btn {
    margin-left: 15px;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .alert {
        width: 90%;
        font-size: 0.7rem;
    }
}

@media (min-width: 601px) {
    .alert {
        width: 350px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        margin-top: -15px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }

    .footer-container > div {
        margin-bottom: 10px;
        width: 100%;
    }

    .system_operations,
    .contact_us,
    .legal-info {
        align-items: center;
        justify-content: center;
    }

    .contact_us {
        display: flex;
        flex-direction: row;
    }

    .contact_us a {
        display: none;
    }

    .contact_us > p {
        display: none;
    }

    .twitter > span,
    .email > span {
        width: 1.1rem;
        height: 1.1rem;
    }

    .twitter > span > svg {
        transform: translate(-25px, 5.5px);
        scale: 1.2;
        background-color: transparent;
        padding: 3px;
        border: 1.5px solid var(--primary-color);
        border-radius: 5px;
        color: white;
    }

    .email > span > svg {
        transform: translate(27px, -11px);
        scale: 1.2;
        background-color: transparent;
        padding: 3px;
        padding: 3px;
        border: 1.5px solid var(--primary-color);
        border-radius: 5px;
        color: white;
    }

    .footer > p {
        margin-top: -9px;
    }
}

