/* General styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: url('./bkgd.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    box-sizing: border-box;
}

/* Floating menu styles */
.floating-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0055AA; 
    color: white;
    z-index: 1000;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.floating-menu nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.floating-menu nav ul li {
    margin: 0;
}

.floating-menu nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    transition: background-color 0.3s ease, border 0.3s ease;
    border-radius: 5px;
}

.floating-menu nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Header styles */
header {
    text-align: center; /* Center align text */
    background-color: rgba(255, 255, 255, 0.9); /* Lighter background */
    padding: 20px;
    margin: 80px auto 20px; /* Adjust margin-top to account for the fixed menu */
    max-width: 800px; /* Restrict width */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Ensure contents align properly */
    justify-content: center;
    align-items: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1rem;
    margin: 0;
}

/* Section styles */
section {
    text-align: center;
    padding: 20px;
    background: #ffffff; /* Lighter background */
    margin: 20px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

section p {
    font-size: 1rem;
    margin: 10px 0;
}

/* Button styles */
.button-container {
    text-align: center;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0055AA;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease, border 0.3s ease;
}

.button:hover {
    background-color: #003f7f;
}

/* ── Utility buttons (TOP / PDF) ─────────────────────────── */
.top-button,
.sample-button {
  position: fixed;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: yellow;
  border: 2px solid #333;
  border-radius: 4px;
  font-weight: bold;
  z-index: 10001;             /* above .floating-menu (z=1000) */
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.top-button a,
.sample-button a { color:#000; text-decoration:none; }

/* positions */
.top-button    { bottom: 20px; left: 20px; }
.sample-button { top:   20px; left: 20px; }

/* small screens */
@media (max-width: 640px){
  .top-button    { bottom: 12px; left: 12px; }
  .sample-button { top:    12px; left: 12px; }
}


/* Footer styles */
footer {
    text-align: center;
    padding: 10px;
    background-color: #0055AA;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
    .floating-menu nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    header {
        margin-top: 200px; 
    }

    section h2 {
        font-size: 1.5rem;
    }

    section p {
        font-size: 0.9rem;
    }
}
/* ─── Timeclock App Styles ─── */

/* Base layout */
body {
    font-family: Arial, sans-serif;
    margin: 2em;
    background: none;       
    color: #333;             
    box-sizing: border-box;
}

/* Buttons */
button {
    padding: 0.5em 1em;
    font-size: 1em;
    margin: 0.5em 0;
    cursor: pointer;
}

/* Records table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

th, td {
    border: 1px solid #ccc;
    padding: 0.5em;
    text-align: left;
}

/* Login form inputs */
input[type="text"],
input[type="password"] {
    padding: 0.4em;
    margin: 0.3em 0;
    width: 100%;
    max-width: 250px;
    box-sizing: border-box;
}

