/* style.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Headings */
h2, h3 {
    color: #333;
    text-align: center;
}

/* Core card / bubble */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ─── force each label+field onto its own line ─── */
form label {
    display: block;
    margin-bottom: 10px;
}

/* Text inputs, date picker, textarea, selects */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="tel"],
textarea,
select {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    margin: 6px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #0f0f1d;
    height: 40px;         /* Ensures all fields have the same height */
    line-height: 20px;
}

/* Add to existing input selectors */
input[type="number"] {
    width: 100%;
    padding: 10px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Make select look consistent with inputs */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml;utf8,<svg fill='gray' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 10px center/16px 16px;
    padding-right: 32px; /* space for dropdown arrow */
}

/* Remove spinner buttons from number input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Primary / action buttons */
input[type="submit"],
button {
    width: 100%;
    padding: 10px;
    margin-top: 12px;    /* space above every button */
    background: #00539c;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover,
button:hover {
    background: #ed6f2d;
}

/* ---------- NEW ---------- */
p {                /* all paragraphs center by default */
    text-align: center;
}

.notice {          /* green “saved” message */
    color: #007a00;
    font-weight: bold;
    max-width: 500px;
    margin: 10px auto;
}

.auth-link {       /* login / register hint */
    max-width: 500px;
    margin: 15px auto;
}

/* Bubble wrapper for single-button actions */
.single-button-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    padding-top: 10px !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Danger (red) button */
input.danger-btn {
    background: #c0392b;
}
input.danger-btn:hover {
    background: #a8322a;
}

/* Apply a specific font to the text inside input fields and textareas */
input[type="text"], input[type="email"], input[type="date"], textarea, select {
    font-family: 'Roboto', sans-serif; /* Change to your desired font */
    font-size: 14px; /* Adjust font size if needed */
    color: #0f0f1d; /* Text color */
}
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    background-color: #f9f9f9;
    color: #333;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the tooltip icon */
    margin-left: 130%;
    transform: translateX(-50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: visibility 0.2s, opacity 0.2s;
}
.tooltip-container:hover .tooltip-content,
.tooltip-content:hover {
    visibility: visible;
    opacity: 1;
}

.tooltip-content a {
    color: #007BFF;
    text-decoration: none;
}

.tooltip-content a:hover {
    text-decoration: underline;
}
/* ---------- Responsive tweaks ---------- */
@media (max-width: 600px) {
    form, .single-button-form {
        max-width: 90%;
        margin: 10px auto;
        padding: 15px;
    }
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="date"],
    input[type="tel"],
    textarea,
    select {
        width: 100%;
        padding: 8px;
        height: 36px;
    }
    input[type="submit"],
    button {
        padding: 8px;
    }
}
