/* Style for all forms */
form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f4f4f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Label styling */
form label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

/* Text input styling (fits better) */
form input[type="text"],
form input[type="password"],
form input[type="date"],
form input[type="tel"],
select,
form select {
    width: 100%;
    padding: 12px;  /* Slightly more padding for better look */
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;  /* Ensures padding doesn't affect width */
}

/* Focus effect on inputs and selects */
form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="date"]:focus,
form select:focus {
    border-color: #5c6bc0;
    box-shadow: 0 0 5px rgba(92, 107, 192, 0.5);
}

/* Button styling */
form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #650a15;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Button hover effect */
form input[type="submit"]:hover {
    background-color: #9a646b;
}

/* Container */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #650a15;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 999px; /* makes it fully rounded */
    transition: background 0.2s ease, transform 0.15s ease;
}

.dropbtn:hover {
    background-color: #9a646b;
}


/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2b2b2b;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.25);
    z-index: 10;
    border-radius: 4px;
    padding: 6px 0;
    animation: dropdownFade 0.15s ease-out;
}

/* Links inside dropdown */
.dropdown-content a {
    color: #eee;
    padding: 8px 14px;
    text-decoration: none;
    display: block;
    font-family: sans-serif;
}

.dropdown-content a:hover {
    background-color: #444;
}

/* Show class added by JS */
.show {
    display: block;
}

/* Fade animation */
@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Remove link underlines and borders */
a {
    text-decoration: none; /* Removes underline */
    border: none;          /* Removes any border */
    display: inline-block; /* Makes links behave like blocks */
}

/* Button styling */
button {
    padding: 12px 22px;
    background: #091342;
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    font-family: inherit;
    margin: 3px 0; /* adds space between buttons */
    display: inline-block; /* Ensures proper alignment */
}

/* Hover effect */
button:hover {
    background: #444c69;
}

.button-bar {
    display: flex;
    justify-content: space-between; /* pushes items to opposite sides */
    width: 99%;
    padding: 10px;
}

.button-bar a button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.timesheet-forms {
    display: flex;              /* Enables flexbox layout */
    justify-content: space-between; /* Adds space between forms */
    gap: 20px;                  /* Adds consistent spacing between forms */
    flex-wrap: wrap;            /* Allows wrapping on smaller screens */
    margin-top: 20px;
}

.timesheet-forms form {
    flex: 1;                    /* Makes each form take equal width */
    min-width: 250px;           /* Prevents forms from getting too small */
    border: 1px solid #ccc;     /* Optional: adds a border for clarity */
    padding: 15px;              /* Adds padding inside each form */
    box-sizing: border-box;     /* Ensures padding doesn't break layout */
    background-color: #f9f9f9;  /* Optional: light background */
    border-radius: 8px;         /* Optional: rounded corners */
}

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}

/* Container for Staff / Volunteer / Visitor buttons */
.role-buttons {
    display: flex;
    gap: 12px;                /* small gap between buttons */
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

/* Each button fills 1/3 of the page */
.role-buttons a {
    flex: 1;                  /* equal width */
}

/* Bigger buttons */
.role-btn {
    width: 100%;
    padding: 30px 0;          /* makes them tall */
    font-size: 22px;          /* bigger text */
    font-weight: bold;
    border-radius: 999px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #1f2933;          /* dark navy/charcoal */
    letter-spacing: 0.4px;
    text-align: center;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.qr-container img {
    width: 220px;          /* adjust if needed */
    height: auto;
    border: 8px solid #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.hint {
            margin-top: 20px;
            font-size: 14px;
            color: #666;
        }