/* Reset and base styles */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #f1f1f1;
}

/* Page heading */
h1 {
    text-align: center;
    margin: 20px 0 10px;
    font-size: 1.8rem;
    color: #ffffff;
}

/* Form container */
form {
    max-width: 500px;
    margin: 10px auto 90px;
    background-color: #1f1f1f;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Form labels and fields */
form label {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #ccc;
}

form select,
form input[type="text"],
form input[type="number"] {
    padding: 8px 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    background-color: #2a2a2a;
    color: #fff;
    width: 100%;
}

form input[type="checkbox"] {
    margin-top: 6px;
    transform: scale(1.2);
}

/* Submit button */
form input[type="submit"] {
    margin-top: 10px;
    padding: 10px;
    font-size: 1rem;
    background-color: #0077cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

form input[type="submit"]:hover {
    background-color: #005fa3;
}

/* Success message */
p {
    text-align: center;
    color: lightgreen;
}

/* Fix bottom tab overlap */
body {
    padding-bottom: 80px;
}


button {
    width: 100%;
    padding: 12px;
    background-color: #3b82f6;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-top: 16px;
    transition: background-color 0.3s ease;
}

.tabs {
    position: fixed; /* Makes the element fixed relative to the viewport */
    bottom: 0;      /* Positions the element at the bottom of the viewport */
    width: 100%;    /* Makes the element span the full width of the viewport */
    background-color: #f8f8f8; /* A light background color, adjust as needed */
    border-top: 1px solid #ccc; /* Optional: adds a top border for separation */
    display: flex;  /* Uses flexbox for even spacing of tabs */
    justify-content: space-around; /* Distributes space evenly between and around items */
    padding: 10px 0; /* Adds some vertical padding */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* Optional: adds a subtle shadow */
    z-index: 1000; /* Ensures the navigation stays on top of other content */
}

.tab {
    flex-grow: 1; /* Allows tabs to grow and fill available space */
    text-align: center; /* Centers the text within each tab */
    padding: 10px 0; /* Padding inside each tab */
    text-decoration: none; /* Removes underline from links */
    color: #333; /* Default text color */
    font-weight: bold; /* Makes text bold */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
    border-radius:5px;
}

.tab:hover {
    background-color: #e2e2e2; /* Background color on hover */
}

/* Optional: Style for the active tab */
.tab.active {
    background-color: #007bff; /* Example: a blue background for the active tab */
    color: #fff; /* White text for the active tab */
}

/* Compact tweaks for mobile */
@media (max-width: 600px) {
    form {
        margin: 10px 12px 100px;
        padding: 15px;
    }

    form label {
        font-size: 0.85rem;
    }

    form input[type="submit"] {
        font-size: 0.95rem;
        padding: 10px;
    }
}

