/* Global Reset & Base */
* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
}
body {
     font-size: 16px;
     font-family: Arial, Helvetica, sans-serif;
     background: white;
     color: #333;
     line-height: 1.4;
}

/* Containers */
.container {
     max-width: 1200px;
     margin: auto;
     padding: 20px;
}

/* Cards (login, error, forms, etc.) */
.card {
     background: #fff;
     min-width: 240px;
     max-width: 400px;
     border-radius: 12px;
     padding: 25px;
     box-shadow: 0 0 15px rgba(0,0,0,0.1);
     margin: 20px auto;
     text-align: center;
}

/* Typography */
h1 { margin-bottom: 15px; color: #222; font-size: 3rem;}
h2 { margin-bottom: 15px; color: #222; font-size: 2.5rem;}
h3 { margin-bottom: 15px; color: #222; font-size: 2rem;}
h4 { margin-bottom: 15px; color: #222; font-size: 1.6rem;}
p { margin-bottom: 15px; font-size: 16px; }
a { color: #007BFF; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons */
.btn {
     display: inline-block;
     background: #007BFF;
     color: #fff;
     padding: 12px 20px;
     border-radius: 6px;
     border: none;
     cursor: pointer;
     font-size: 16px;
     text-align: center;
     transition: background 0.3s ease;
}
.btn:hover { background: #0056b3; transform: scale(1.05); }
.btn-green { background: #28a745; }
.btn-green:hover { background: #218838; transform: scale(1.05);}
.btn-red { background: #c00; }
.btn-red:hover { background: #900; transform: scale(1.05);}
.btn-blue { background: #0000FF; }
.btn-blue:hover { background: #0000A0; transform: scale(1.05);}
.btn:disabled { background-color: #ccc; color: #666; border: 1px solid #bbb; cursor: not-allowed; opacity: 0.8; }

/* Forms */
input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
     width: 100%;
     padding: 12px;
     margin: 10px 0;
     border: 1px solid #ddd;
     border-radius: 6px;
     font-size: 16px;
}
input:focus {
     border-color: #007BFF;
     outline: none;
}

/* Alerts */
.alert { padding: 12px; margin: 15px 0; border-radius: 6px; font-weight: bold; }
.alert-error { background: #fdd; color: #c00; border: 1px solid #c00; }
.alert-success { background: #dfd; color: #155724; border: 1px solid #28a745; }

/* Icons */
.icon { width: 80px; margin-bottom: 15px; }
.icon-large { width: 120px; }

/* Navigation & Header */
.nav-container {
     display: flex;
     justify-content: space-between;
     align-items: center;
     max-width: 1500px;
     margin: 0 auto;
     padding: 0 20px;
}
/* special feature - this will stay at the top of the page despite scrolling */
.sticky-header {
     max-width: 3400px;
     position: sticky;  /* or fixed */
     text-align: left;
     border-top: 2px;
     border-bottom: 2px solid white;
     top: 0;
     z-index: 1000;     /* ensure it stays above other elements */
     background-color: white;
}
.sticky-header .logo img {
     height: 76px;
     padding-left: 50px;
     width: auto;
     display: block;
}
.sticky-header .nav ul {
     list-style: none;
     display: flex;
     justify-content: flex-end;
     gap: 20px;
     margin: 0;
     padding: 0;
}
.sticky-header .nav ul.showing {
  display: flex;
}
.sticky-header .nav ul li a {
    color: #007acc;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    transition: color 0.3s ease, background 0.3s ease;
}
.sticky-header .nav ul li a:hover {
   color: #ffffff;
   background-color: #007acc;
   border-radius: 5px;
}
.sticky-header .mobile img {
     height: 80px;
     padding-left: 50px;
     width: auto;
     display: block;
}

/* Hide hamburger on desktop */
.menu-toggle {
    display: none;
}

/* MOBILE LAYOUT */
@media (max-width: 768px) {
    /* Show hamburger */
    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: #007acc;
        padding: 8px 12px;
        border-radius: 6px;
        border: none;
        background: none;
    }

    /* Hide nav by default */
    .sticky-header .nav ul {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.4s ease-in-out;
    }

    /* Show when toggled */
    .sticky-header .nav ul.showing {
        display: flex;
        max-height: 500px;
        opacity: 1;
    }

    .sticky-header .nav ul li {
        width: 100%;
        text-align: center;
    }

    .sticky-header .nav ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #e0e0e0;
    }
}

/* standard header */
.site-header {
     max-width: 1800px;
     text-align: left;
     border-top: 2px;
     border-bottom: 2px solid white;
     background-color: white;
}
.site-header .logo img {
     height: 76px;
     width: auto;
     display: block;
}
.site-header .mobile img {
     height: 80px;
     padding-left: 50px;
     width: auto;
     display: block;
}
.site-header .nav ul {
     list-style: none;
     display: flex;
     justify-content: flex-end;
     gap: 20px;
     margin: 0;
     padding: 0;
}
.site-header .nav ul li a {
    color: #007acc;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    transition: color 0.3s ease, background 0.3s ease;
}
.site-header .nav ul li a:hover {
   color: #ffffff;
   background-color: #007acc;
   border-radius: 5px;
}

/* Hamburger menu */
.menu-toggle {
     display: none;
     font-size: 28px;
     cursor: pointer;
     color: #007acc;
     padding: 8px 12px;
     border-radius: 6px;
     transition: background 0.3s ease, color 0.3s ease;
}
.menu-toggle:hover {
     background: #007acc;
     color: #ffffff;
}
.dash-menu-toggle {
     display: none;
     font-size: 28px;
     cursor: pointer;
     color: #007acc;
     padding: 8px 12px;
     border-radius: 6px;
     transition: background 0.3s ease, color 0.3s ease;
}
.dash-menu-toggle:hover {
     background: #007acc;
     color: #ffffff;
}

@media (max-width: 768px) {
     .site-header .nav ul {
          display: none;
          flex-direction: column;
          background: white;
          position: absolute;
          top: 60px;
          left: 0;
          width: 100%;
          padding: 10px 0;
          box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
          z-index: 999;
     }
     .site-header .nav ul.showing { display: flex; }
     .site-header .nav ul li { width: 100%; text-align: center; }
     .site-header .nav ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #e0e0e0;
     }
     .menu-toggle { display: block; }
     .dash-menu-toggle { display: block; }
}

/* Hero Section */
.hero {
     background: linear-gradient(to right, #007BFF, #00c6ff);
     color: #fff;
     text-align: center;
     padding: 20px;
}
.hero h2 { font-size: 2.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 20px; }

/* Features */
.features {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 30px;
     padding: 40px 20px;
     text-align: center;
}
.features .feature .icon { width: 90px; margin-bottom: 15px; }

/* CTA */
.cta { background: #f1f1f1; text-align: center; padding: 60px 20px; }
.cta h2 { margin-bottom: 15px; }

/* Footer */
.site-footer {
     background: #222;
     color: #ddd;
     padding: 20px;
     margin-top: 40px;
}
.site-footer h4 { font-size: 1.6rem; color: #fff; margin-bottom: 15px; }
.site-footer .footer-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 30px;
     max-width: 1200px;
     margin: 0 auto;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color: #ddd; text-decoration: none; transition: color 0.3s ease; }
.site-footer ul li a:hover { color: #00c6ff; }
.site-footer .social-links { display: flex; gap: 15px; }
.site-footer .social-links img { width: 30px; height: 30px; transition: transform 0.3s ease; }
.site-footer .social-links img:hover { transform: scale(1.1); }
.footer-bottom {
     text-align: center;
     margin-top: 20px;
     border-top: 1px solid #444;
     padding-top: 5px;
     font-size: 8px;
     color: #aaa;
}

/* Success Page */
.success-wrapper {
     display: flex;
     justify-content: center;
     align-items: center;
     min-height:40vh;
     background: #f4f9f4;
     padding: 20px;
}
.success-card {
     background: #fff;
     padding: 40px;
     border-radius: 12px;
     box-shadow: 0 6px 15px rgba(0,0,0,0.1);
     text-align: center;
     max-width: 500px;
     width: 100%;
}
.success-icon { width: 80px; height: 80px; margin-bottom: 20px; }
.success-card h2 { font-size: 2.5rem; margin-bottom: 15px; color: #2e7d32; }
.success-card p { font-size: 1rem; margin-bottom: 25px; color: #333; }
.success-actions {
     display: flex;
     gap: 15px;
     justify-content: center;
     flex-wrap: wrap;
}

/* Dashboard */
.dashboard-welcome { text-align: center; margin: 20px 0 40px; }
.dashboard-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 25px;
}
.dashboard-grid .card {
     background: #fff;
     padding: 25px;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0,0,0,0.08);
     transition: transform 0.2s ease;
     text-align: center;
}
.dashboard-grid .card:hover { transform: translateY(-5px); }
.dashboard-grid h3 { margin-bottom: 10px; color: #333; }

/* Sitemap */
.sitemap-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.sitemap-list li { margin: 8px 0; }
.sitemap-list a {
     text-decoration: none;
     color: #2e7d32;
     font-weight: 500;
     transition: color 0.2s ease;
}
.sitemap-list a:hover { color: #1b5e20; text-decoration: underline; }

/* Cloud Hero */
.hero-cloud {
     min-height:16vh;
     display:grid;
     place-items:center;
     position:relative;
     overflow:hidden;
     background:#8fb3ff url("images/clouds.jpg") center/cover no-repeat fixed;
}
.hero-cloud::before {
     content:"";
     position:absolute;
     inset:0;
     background:radial-gradient(ellipse at center,rgba(0,0,0,.12) 0%,rgba(0,0,0,.22) 60%,rgba(0,0,0,.32) 100%);
     pointer-events:none;
}
.hero-cloud__text { 
     position:relative;
     z-index:1;
     font-family:"Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
     font-weight:800;
     text-align:center;
     color:#ffd12e;
     line-height:1.15;
     letter-spacing:.5px;
     font-size:clamp(20px,5vw,64px);
     text-shadow:0 2px 12px rgba(0,0,0,.45),0 0 2px rgba(0,0,0,.25);
     animation:slideZoomRotatePause 25s ease-in-out infinite;
}
@keyframes slideZoomRotatePause {
     0% { transform:translateX(-120%) scale(1) rotate(0); opacity:0; }
     20% { transform:translateX(0) scale(1.12) rotate(0); opacity:1; }
     40% { transform:translateX(0) scale(0.9) rotate(0); opacity:1; }
     60% { transform:translateX(0) scale(1) rotate(360deg); opacity:1; }
     90% { transform:translateX(0) scale(1) rotate(360deg); opacity:1; }
     100% { transform:translateX(120%) scale(1) rotate(0); opacity:0; }
}
@media (prefers-reduced-motion: reduce){.hero-cloud__text{animation:none}}

/* Testimonials */
.testimonials-banner {
     background: #f4f7f6;
     padding: 3rem 1rem;
     text-align: center;
     margin: 3rem auto 0 auto;
     border-top: 3px solid #2e7d32;
     max-width: 1200px;
}
.testimonials-banner h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: #2e7d32; }
.testimonial-carousel { position: relative; max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.testimonial-carousel blockquote {
     display: none;
     background: #fff;
     padding: 1.5rem 2rem;
     border-left: 5px solid #2e7d32;
     border-radius: 10px;
     font-style: italic;
     font-size: 1.1rem;
     color: #444;
     box-shadow: 0 2px 6px rgba(0,0,0,0.1);
     margin: 1.5rem auto;
     max-width: 700px;
     text-align: left;
     transition: opacity 0.6s ease;
}
.testimonial-carousel blockquote.active { display: block; opacity: 1; }
.testimonial-controls .prev,
.testimonial-controls .next {
     cursor: pointer;
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     font-size: 2rem;
     color: #2e7d32;
     font-weight: bold;
     padding: 0 10px;
     background: rgba(255,255,255,0.8);
     border-radius: 50%;
}
.testimonial-controls .prev { left: 10px; }
.testimonial-controls .next { right: 10px; }
.testimonial-controls .prev:hover,
.testimonial-controls .next:hover {
     background: #2e7d32;
     color: #fff;
}
.testimonial-dots { text-align: center; margin-top: 1rem; }
.testimonial-dots .dot {
     cursor: pointer;
     height: 12px;
     width: 12px;
     margin: 0 4px;
     background-color: #bbb;
     border-radius: 50%;
     display: inline-block;
     transition: background-color 0.3s;
}
.testimonial-dots .dot.active { background-color: #2e7d32; }

/* Responsive Breakpoints  */
@media (max-width: 768px) {
     body { font-size: 14px; }
     .container { width: 95%; padding: 10px; }
     .dashboard { grid-template-columns: repeat(1, 1fr); }
     .hero-cloud__text { font-size: 1.8rem; }
}
@media (min-width: 1024px) {
     .dashboard { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 2560px) {
     body { font-size: 20px; }
     .container { max-width: 2400px; }
     .dashboard { grid-template-columns: repeat(3, 1fr); gap: 40px; }
     .btn, input { font-size: 20px; padding: 16px; }
     .icon-large { width: 150px; }
}

  /* Privacy page Layout */
.privacy-policy {
     font-family: "Helvetica Neue", Arial, sans-serif;
     color: #333;
     line-height: 1.6;
     background: #fafafa;
     padding-bottom: 3rem;
}
.privacy-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
  }

  /* Hero section */
.privacy-policy .hero {
     background: linear-gradient(135deg, #0066cc, #004080);
     color: #fff;
     padding: 3rem 1rem;
     text-align: center;
}
.privacy-policy .hero h1 {
     font-size: 3rem;
     margin-bottom: 0.5rem;
}
.privacy-policy .last-updated {
     font-size: 0.95rem;
     opacity: 0.9;
}

  /* Headings */
.privacy-policy h2 {
     font-size: 2.5rem;
     margin-top: 2rem;
     margin-bottom: 1rem;
     color: #004080;
}

  /* Lists */
.privacy-policy ul {
     margin-left: 1.5rem;
     padding-left: 1rem;
}
.privacy-policy ul li {
     margin-bottom: 0.5rem;
}

  /* Links */
.privacy-policy a {
     color: #0066cc;
     text-decoration: none;
}
.privacy-policy a:hover {
     text-decoration: underline;
}

/* Contact */
.privacy-policy address {
     font-style: normal;
     margin-top: 1rem;
     background: #f0f4f9;
     padding: 1rem;
     border-radius: 0.5rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
     background: #f0f4f9;
     padding: 0.75rem 1rem;
     font-size: 0.95rem;
}
.breadcrumb-list {
     list-style: none;
     display: flex;
     flex-wrap: wrap;
     margin: 0;
     padding: 0;
}
.breadcrumb-list li {
     margin-right: 0.5rem;
}
.breadcrumb-list li::after {
     content: "›";
     margin-left: 0.5rem;
     color: #666;
}
.breadcrumb-list li:last-child::after {
     content: "";
}
.breadcrumb-list a {
     color: #0066cc;
     text-decoration: none;
}
.breadcrumb-list a:hover {
     text-decoration: underline;
}

/* For Login Screen to centre card */
.main-login {
     min-height: 30vh;               /* fill most of viewport */
     display: flex;                  /* flex container */
     justify-content: center;        /* horizontal center */
     align-items: center;            /* vertical center */
     flex-direction: column;         /* stack elements vertically */
     padding: 1rem;
}
.main-login .container {
     width: 100%;
     max-width: 500px;               /* keeps it narrow */
}
.card-login {
     background: #fff;
     padding: 2rem;
     border-radius: 8px;
     box-shadow: 0 4px 10px rgba(0,0,0,0.1);
     width: 100%;
}

/* required to max flexibly lay out input fields on the screen */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.form-grid label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Adjust to ensure red text box for required input fields */
input:required:invalid {
     border: 2px solid red;
     background-color: #fff5f5; /* light red background */
}
/* When user fills them correctly */
input:required:valid {
     border: 2px solid green;
     background-color: #f6fff6; /* light green background */
}

/* These are setup for roster viewing and editing */
.month-nav {
     text-align: center;
     margin: 20px 0;
}
.month-nav a {
     margin: 0 10px;
     text-decoration: none;
     padding: 6px 12px;
     border: 1px solid #ccc;
     border-radius: 6px;
     background: #f2f2f2;
}
.month-nav a:hover {
     background: #ddd;
}
.calendar-grid-7 {
     display: grid;
     grid-template-columns: repeat(7, 1fr);
     gap: 15px;
     margin-top: 20px;
}
.day-card.empty {
     background: #f5f5f5;
     border: 1px dashed #ddd;
     min-height: 120px;
}
/* Small action buttons */
/* Hover effect for small buttons (consistent UI) */
.event-actions { margin-top: 6px; } 
.btn-red-small {
     background: #dc3545;
     color: #fff;
     padding: 3px 8px;
     border: none;
     border-radius: 4px;
     font-size: 0.8em;
     cursor: pointer;
}
.btn-red-small:hover { background-color: #a71d2a; transform: scale(1.05); }
.btn-red-small:disabled { background-color: #ccc; color: #666; border: 1px solid #bbb; cursor: not-allowed; opacity: 0.8; }
.btn-blue-small {
     background: #007bff;
     color: #fff;
     padding: 3px 8px;
     border: none;
     border-radius: 4px;
     font-size: 0.8em;
     cursor: pointer;
}
.btn-blue-small:hover { background-color: #0056b3; transform: scale(1.05); }
.btn-blue-small:disabled { background-color: #ccc; color: #666; border: 1px solid #bbb; cursor: not-allowed; opacity: 0.8; }
.btn-green-small {
     background: #28a745;
     color: #fff;
     padding: 3px 8px;
     border: none;
     border-radius: 4px;
     font-size: 0.8em;
     cursor: pointer;
}
.btn-green-small:hover { background-color: #218838; transform: scale(1.05); }
.btn-green-small:disabled { background-color: #ccc; color: #666; border: 1px solid #bbb; cursor: not-allowed; opacity: 0.8; }
.btn-grey-small {
     background: #6c757d;
     color: #fff;
     padding: 3px 8px;
     border: none;
     border-radius: 4px;
     font-size: 0.8em;
     cursor: pointer;
}
.btn-grey-small:hover { background-color: #5a6268; transform: scale(1.05); }

/* Buttons that are dynamic */
.btn-red-small button[name="action"][value="delete"] {
     background-color: #dc3545; /* red */
}
.btn-red-small button[name="action"][value="delete"]:hover {
     background-color: #c82333; /* red */
     transform: scale(1.05);
}
.btn-blue-small button[name="action"][value="update"] {
     background: #007bff;
}
.btn-blue-small button[name="action"][value="update"]:hover {
     background: #007bff;
     transform: scale(1.05);
}

/* Container for admin actions */
.adm-actions {
     display: flex;
     justify-content: center;
     gap: 10px;
     margin-top: 8px;
}
/* Buttons inside admin-actions */
.adm-actions button {
     padding: 6px 14px;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     font-size: 0.9rem;
     font-weight: 600;
     color: #fff;
     transition: background 0.2s ease, transform 0.1s ease;
}
/* Edit button (green) */
.adm-actions button[name="edit"][id="edit"] {
     background-color: #28a745; /* green */
}
.adm-actions button[name="edit"][id="edit"]:hover {
     background-color: #218838;
     transform: scale(1.05);
}
/* delete button (red) */
.adm-actions button[name="delete"][id="delete"] {
     background-color: #dc3545; /* red */
}
.adm-actions button[name="delete"][id="delete"]:hover {
     background-color: #c82333;
     transform: scale(1.05);
}
/* manual timesheet button (blue) */
.adm-actions button[name="manual"][id="manual"] {
     background-color: #007BFF; /* blue */
}
.adm-actions button[name="manual"][id="manual"]:hover {
     background-color: #0056b3;
     transform: scale(1.05);
}

/* Container for support worker actions */
.sw-actions {
     display: flex;
     justify-content: center;
     gap: 10px;
     margin-top: 8px;
}
/* Buttons inside sw-actions */
.sw-actions button {
     padding: 6px 14px;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     font-size: 0.9rem;
     font-weight: 600;
     color: #fff;
     transition: background 0.2s ease, transform 0.1s ease;
}
/* Attend button (green) */
.sw-actions button[name="attend"][id="attend"] {
     background-color: #28a745; /* green */
}
.sw-actions button[name="attend"][id="attend"]:hover {
     background-color: #218838;
     transform: scale(1.05);
}
/* Unavailable button (red) */
.sw-actions button[name="unavailable"][id="unavailable"] {
     background-color: #dc3545; /* red */
}
.sw-actions button[name="unavailable"][id="unavailable"]:hover {
     background-color: #c82333;
     transform: scale(1.05);
}

/* Container for participant actions */
.part-actions {
     display: flex;
     justify-content: center;
     gap: 10px;
     margin-top: 8px;
}
/* Buttons inside sw-actions */
.part-actions button {
     padding: 6px 14px;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     font-size: 0.9rem;
     font-weight: 600;
     color: #fff;
     transition: background 0.2s ease, transform 0.1s ease;
}
/* exit button (red) */
.part-actions button[name="action"][id="exit"] {
     background-color: #dc3545; /* red */
}
.part-actions button[name="action"][id="exit"]:hover {
     background-color: #c82333;
     transform: scale(1.05);
}
/* Edit button (green) */
.part-actions button[name="edit"][id="edit"] {
     background-color: #28a745; /* green */
}
.part-actions button[name="edit"][id="edit"]:hover {
     background-color: #218838;
     transform: scale(1.05);
}
/* Calendar selection container */
.calendar-select {
     max-width: 600px;
     margin: 20px auto;
     padding: 20px;
     background: #ffffff;
     border: 1px solid #ddd;
     border-radius: 10px;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
     text-align: center;
}
/* Title above the dropdown */
.calendar-select h2 {
     font-size: 1.4rem;
     margin-bottom: 15px;
     color: #333;
}
/* Dropdown styling */
.calendar-select select {
     width: 80%;
     max-width: 400px;
     padding: 10px;
     font-size: 1rem;
     border: 1px solid #ccc;
     border-radius: 6px;
     background: #f9f9f9;
     transition: border-color 0.2s ease, background 0.2s ease;
     cursor: pointer;
}
/* On hover/focus */
.calendar-select select:hover,
.calendar-select select:focus {
     border-color: #007bff;
     background: #ffffff;
     outline: none;
}

/* Grid layout for calendar days */
.calendar-display {
     display: grid;
     grid-template-columns: repeat(7, 1fr);
     gap: 15px;
     margin: 20px;
}
/* Each day is a card */
.day-card {
     background: #fff;
     border: 1px solid #ddd;
     border-radius: 10px;
     padding: 10px;
     box-shadow: 0 3px 6px rgba(0,0,0,0.1);
     display: flex;
     flex-direction: column;
     min-width: 200px;
     min-height: 200px;
}
/* Day header */
.day-card h3 {
     font-size: 1.1rem;
     margin-bottom: 10px;
     text-align: center;
     color: #007bff;
     border-bottom: 1px solid #eee;
     padding-bottom: 5px;
}
/* Sub-card for each event */
.event-card {
     background: #f9f9f9;
     border: 1px solid #ccc;
     border-radius: 6px;
     padding: 8px;
     margin-bottom: 8px;
     font-size: 0.9rem;
     box-shadow: 0 1px 3px rgba(0,0,0,0.05);
     transition: background-color 0.2s ease, transform 0.1s ease;
     cursor: pointer;
}
.event-card h3 {
     font-size: 1.1rem;
     color: whitesmoke;
}
.event-card:hover {
     transform: translateY(-2px);  /* subtle lift */
     box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.no-events {
     font-size: 0.85rem;
     color: #888;
     text-align: center;
     margin-top: 10px;
}

/* Month navigation */
.calendar-nav {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin: 20px auto;
     max-width: 900px;
     font-size: 1.1rem;
     font-weight: bold;
}
.calendar-nav a {
     text-decoration: none;
     color: #007bff;
}
.calendar-nav a:hover {
     text-decoration: underline;
}

/* Calendar grid: 7 columns */
.calendar-display {
     display: grid;
     grid-template-columns: repeat(7, 1fr);
     gap: 10px;
     margin: 10px auto;
     max-width: 2400px;
}

/* Grey out days outside current month */
.day-card.other-month {
     background: #f3f3f3;
     color: #aaa;
}

/* style for calendar edit cards */
.edit-form-card {
     max-width: 1000px;
     margin: 30px auto;
     padding: 20px;
     background: #fff;
     border: 1px solid #ddd;
     border-radius: 10px;
     box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.edit-form-card h2 {
     text-align: center;
     margin-bottom: 20px;
     color: #007bff;
}
.edit-form-card label {
     display: block;
     margin-top: 10px;
     font-weight: bold;
}
.edit-form-card input,
.edit-form-card select {
     width: 100%;
     padding: 8px;
     margin-top: 5px;
     border: 1px solid #ccc;
     border-radius: 6px;
     font-size: 1rem;
}
.form-actions {
     display: flex;
     justify-content: space-between;
     margin-top: 20px;
}
.form-actions button {
     flex: 1;
     margin: 0 10px;
     padding: 10px 30px;
     font-size: 1rem;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     font-weight: bold;
     color: #fff;
     transition: background 0.2s ease;
}
.form-actions button[name="action_adm"][value="create"] {
     background-color: #28a745;
}
.form-actions button[name="action_adm"][value="create"]:hover {
     background-color: #218838;
     transform: scale(1.05);
}
.form-actions button[name="action_adm"][value="save_edit"] {
     background-color: #28a745;
}
.form-actions button[name="action_adm"][value="save_edit"]:hover {
     background-color: #218838;
     transform: scale(1.05);
}
.form-actions button[name="action_adm"][value="cancel"] {
     background-color: #dc3545;
}
.form-actions button[name="action_adm"][value="cancel"]:hover {
     background-color: #c82333;
     transform: scale(1.05);
}
.form-actions button[name="action_part"][value="save_edit"] {
     background-color: #28a745;
}
.form-actions button[name="action_part"][value="save_edit"]:hover {
     background-color: #218838;
     transform: scale(1.05);
}
.form-actions button[name="action_part"][value="cancel"] {
     background-color: #dc3545;
}
.form-actions button[name="action_part"][value="cancel"]:hover {
     background-color: #c82333;
     transform: scale(1.05);
}

/* Shift Attendance Card */
.shift-card {
     max-width: 700px;
     margin: 30px auto;
     padding: 20px;
     background: #fff;
     border: 1px solid #ddd;
     border-radius: 12px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.1);
     text-align: left;
}
.shift-card h2 {
     font-size: 1.6rem;
     margin-bottom: 20px;
     color: #007bff;
     text-align: center;
}
.shift-card p {
     margin: 10px 0;
     font-size: 1rem;
     line-height: 1.4;
}

/* Form inside card */
.shift-card form {
     margin-top: 20px;
     text-align: center;
}
.shift-card label {
     display: block;
     margin: 10px 0 5px;
     font-weight: bold;
}
.shift-card input[type="datetime-local"] {
     width: 100%;
     padding: 8px;
     border: 1px solid #ccc;
     border-radius: 6px;
     font-size: 1rem;
     margin-bottom: 15px;
}

/* Buttons */
.shift-card button {
     padding: 10px 20px;
     margin: 10px 5px;
     border: none;
     border-radius: 6px;
     font-size: 1rem;
     cursor: pointer;
     color: #fff;
     transition: background 0.2s ease-in-out;
}
.shift-card button[name="signin"] {
     background-color: #28a745;
}
.shift-card button[name="signin"]:hover {
     background-color: #218838;
     transform: scale(1.05);
}
.shift-card button[name="signout"] {
     background-color: #dc3545;
}
.shift-card button[name="signout"]:hover {
     background-color: #c82333;
     transform: scale(1.05);
}
.shift-card button[name="manual_save"] {
     background-color: #007bff;
}
.shift-card button[name="manual_save"]:hover {
     background-color: #0056b3;
     transform: scale(1.05);
}

/* Embedded Map */
.shift-map {
     margin-top: 20px;
     border: 1px solid #ccc;
     border-radius: 10px;
     overflow: hidden;
     box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.shift-map iframe {
     width: 100%;
     height: 300px;
     border: 0;
}

/* Calendar legend */
.calendar-legend {
     margin: 20px 0;
     padding: 15px;
     border: 1px solid #ddd;
     border-radius: 10px;
     background-color: #fafafa;
     max-width: 400px;
}
.calendar-legend h3 {
     margin-top: 0;
     font-size: 1.2em;
     margin-bottom: 10px;
}
.legend-item {
     display: flex;
     align-items: center;
     margin-bottom: 8px;
}
.legend-color {
     display: inline-block;
     width: 20px;
     height: 20px;
     border-radius: 4px;
     margin-right: 10px;
     border: 1px solid #ccc;
}

/* for when admin needs to do a manual timesheet */
.manual-timesheet-btn {
     display: inline-block;
     padding: 6px 12px;
     margin-top: 8px;
     background-color: #007BFF;
     color: #fff;
     border-radius: 6px;
     text-decoration: none;
     font-size: 0.9em;
     font-weight: 600;
     transition: background-color 0.2s ease;
}
.manual-timesheet-btn:hover {
     background-color: #0056b3;
     transform: scale(1.05);
}

/* in calendar */
.add-shift-card {
     background-color: #f0f8ff;
     border: 2px dashed #007bff;
     display: flex;
     align-items: center;
     justify-content: center;
     height: 60px;
}
.add-shift-btn {
     display: inline-block;
     font-weight: 600;
     color: #007bff;
     text-decoration: none;
     font-size: 0.95em;
}
.add-shift-btn:hover {
     text-decoration: underline;
}

/* Add hrs check with sign out */
.form-group {
     margin: 12px 0;
}
.form-group label {
     font-weight: 500;
     color: #333;
}

/* Card editing formats */
.card-editing {
     width: 400px;
     border: 2px solid #ffcc00;
     background-color: #ffcc00; /* Light yellow background */ 
     box-shadow: 0 0 10px rgba(255, 204, 0, 0.7); /* glowing effect */ 
}
.card-editing button[name="save_shift"] {
     grid-column: 1 / -1; 
     justify-self: center; 
     margin-top: 15px;
}
.card-editing button[name="save_shift"]:hover {
     transform: scale(1.05);
}
.card-editing button[name="cancel"] {
     grid-column: 1 / -1; 
     justify-self: center; 
     margin-top: 15px;
}
.card-editing button[name="cancel"]:hover {
     transform: scale(1.05);
}
.grid-container { 
     display: grid; 
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 15px; 
     margin-top: 20px; 
}
.grid-item { padding: 15px;
     border: 1px solid #ccc;
     border-radius: 8px;
     background: #f9f9f9;
     box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.grid-item.overnight {
     background: #fff3cd;  /* light yellow for overnight */
     border: 1px solid #e0c97f;
}
.grid-item.clash { border: 2px solid red; background: #ffe5e5; }
.grid-2 {
     display: grid;
     grid-template-columns: auto 1fr; /* left = image width, right = remaining space */
     gap: 20px;
     align-items: center;
}
.grid-2 img {
     display: block;
     max-width: 100%;  /* prevents oversized images */
     height: auto;
}
.grid-2 > div:last-child {
     text-align: left; /* ensure text aligns left */
}     

/* For timesheet info */
form .form-time {
     display: block;
     margin-bottom: 10px;
}
form .form-time label {
     display: block;
     font-weight: bold;
     margin-bottom: 5px;
}

/* Display timesheet preview */
.card-table {
     max-width: 1200px;
     margin: 30px auto;
     padding: 20px;
     background: #fff;
     border: 1px solid #ddd;
     border-radius: 12px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.1);
     text-align: left;
}
/* Generic table styling for data display */
.data-table {
     width: 100%;
     border-collapse: collapse;
     margin: 15px 0;
     font-size: 14px;
     text-align: left;
     background-color: #fff;
     border: 1px solid #ddd;
     border-radius: 8px;
     overflow: hidden;
     box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.data-table thead {
     background-color: #f4f4f4;
     color: #333;
     font-weight: bold;
}
.data-table thead th {
     padding: 10px;
     border-bottom: 2px solid #ddd;
}
.data-table tbody td {
     padding: 10px;
     border-bottom: 1px solid #eee;
}
.data-table tbody tr:last-child td {
     border-bottom: none;
}
/* Hover effect for rows */
.data-table tbody tr:hover {
     background-color: #f9f9f9;
     transition: background 0.2s ease-in-out;
}
/* Numeric columns alignment */
.data-table td:nth-child(5),
.data-table td:nth-child(6) {
     text-align: right;
}
/* Optional: highlight header */
.data-table th {
     text-transform: uppercase;
     letter-spacing: 0.5px;
}
.text-cell {
     max-width: 350px;
     white-space: pre-wrap;
     word-wrap: break-word;
}
/* Highlight when scheduled time was forced */
.highlight-mismatch {
     color: #b30000;
     font-weight: bold;
}

/* When displaying a list of days to select */
/* Fieldset for Days of Week */
.days-fieldset {
     margin: 15px 0;
     padding: 12px 15px 15px;
     border: 1px solid #ccc;
     border-radius: 6px;
     background: #fafafa;
}
.days-fieldset legend {
     font-weight: bold;
     padding: 0 8px;
     color: #333;
}
/* Checkboxes inside fieldset */
.days-checkboxes {
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
     justify-content: center;
     margin-top: 8px;
}
.days-checkboxes label {
     display: flex;
     align-items: center;
     gap: 5px;
     background: #fff;
     border: 1px solid #ccc;
     padding: 6px 12px;
     border-radius: 5px;
     cursor: pointer;
     font-size: 14px;
     user-select: none;
     transition: background 0.2s, border-color 0.2s;
}
.days-checkboxes label:hover {
     background: #f0f0f0;
     border-color: #999;
}
.days-checkboxes input[type="checkbox"] {
     transform: scale(1.3);   /* bigger tick box */
}

/* Display warning message to ADMIN typically associated with calendar cards*/
.admin-warning {
     background-color: #fff3cd;
     border: 1px solid #ffeeba;
     padding: 8px;
     margin-top: 6px;
     border-radius: 6px;
     font-size: 0.9em;
     color: #856404;
}

/* for displaying a QR code for the user */
.card.qr-container {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     padding: 20px;
     margin: 20px auto;
     max-width: 400px;
     text-align: center;
}
.card.qr-container h3 {
     margin-bottom: 15px;
}
.card.qr-container img {
     margin-bottom: 15px;
     border: 4px solid #f0f0f0;
     border-radius: 10px;
}
.card.qr-container p {
     margin-bottom: 15px;
     font-size: 14px;
}
.card.qr-container .confirm-container {
     margin-top: 10px;
}

/* when displaying a total for timesheet */
.total-row {
     background-color: #f8f9fa;
     font-weight: bold;
}

/* Progress bar styles - with JSON */
.total-row {
     background-color: #f8f9fa;
     font-weight: bold;
}
#progress-container {
     width: 100%;
     background: #eee;
     margin-top: 15px;
     display: none;
     border-radius: 5px;
     overflow: hidden;
}
#progress-bar {
     width: 0;
     background: #28a745;
     height: 20px;
     color: white;
     text-align: center;
     line-height: 20px;
     font-size: 13px;
}

/* for displaying a smaller font for invoice data row */
.invoice-row td {
     font-size: 12px;
}

/* === Shift Notes Modal === */
.modal {
    display: none;              /* hidden by default */
    position: fixed;
    z-index: 2000;              /* above all other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* semi-transparent overlay */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    text-align: left;
    animation: fadeInScale 0.3s ease;
}
/* Animate modal appearance */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.modal-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #007bff;
    text-align: center;
}
.modal-content textarea {
    width: 80%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 12px;
    resize: vertical;
}
.modal-content label {
    display: block;
    margin: 6px 0;
    font-size: 0.95rem;
    color: #333;
}
/* Hide sign-out confirm button until valid input */
.hidden {
    display: none !important;
}

/* for entering text in large text area with word-wrap */
.wide-textarea {
     width: 90%;
     max-width: 900px;
     padding: 10px 12px; 
     box-sizing: border-box;
     white-space: pre-wrap;  /* preserves newlines but still wraps */
     word-wrap: break-word;  /* breaks very long words if needed */
}
.wide-textarea[required] {
     width: 90%;
     max-width: 900px;
     padding: 10px 12px; 
     border: 2px solid #d9534f;
     backgroundColor: '#fff5f5';
     box-sizing: border-box;
     white-space: pre-wrap;  /* preserves newlines but still wraps */
     word-wrap: break-word;  /* breaks very long words if needed */
}

/* to get a nice large checkbox */
.big-checkbox {
     transform: scale(1.8);
     accent-color: #28a745; /* nice green tone */
     margin-right: 8px;
}

/* Scrollable Table Container */
.scroll-table {
     max-height: 500px;            /* limit height before scroll appears */
     overflow-y: auto;             /* vertical scroll */
     overflow-x: auto;             /* horizontal scroll (for smaller screens) */
     margin-top: 15px;
     border: 1px solid #ccc;
     border-radius: 6px;
     background-color: #fff;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.data-table-ts {
     width: 100%;
     border-collapse: collapse;
     font-size: 14px;
     color: #333;
}
.data-table-ts thead th {
     position: sticky;
     top: 0;                        /* makes header fixed when scrolling */
     background-color: #f2f2f2;
     font-weight: bold;
     border-bottom: 2px solid #ddd;
     text-align: left;
     padding: 8px;
     z-index: 2;
}
.data-table-ts td {
     padding: 8px;
     border-bottom: 1px solid #e0e0e0;
     vertical-align: middle;
     line-height: 1.4;
}
.data-table-ts tr:nth-child(even) {
     background-color: #fafafa;
}
.data-table-ts tr:hover {
     background-color: #9DFBFB;
     transition: background-color 0.2s ease-in-out;
}
/* Optional: Small-screen tweaks */
@media (max-width: 768px) {
     .scroll-table {
          max-height: none;
          overflow-x: scroll;
     }
     .data-table-ts th,
     .data-table-ts td {
          font-size: 13px;
          padding: 6px;
     }
}

/* FAQ Section (Consistent with PMAbility) */
.faq-section {
     background: #f9f9f9;
     padding: 60px 20px;
}
.faq-section .faq-title {
     text-align: center;
     color: #007acc;
     font-size: 2.5rem;
     margin-bottom: 40px;
}
.faq-item {
     background: #fff;
     border-radius: 10px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
     margin-bottom: 20px;
     overflow: hidden;
     transition: box-shadow 0.3s ease;
}
.faq-item:hover {
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.faq-question {
     width: 100%;
     background: #007bff;
     color: #fff;
     text-align: left;
     border: none;
     outline: none;
     padding: 18px 20px;
     font-size: 1.1rem;
     font-weight: bold;
     cursor: pointer;
     transition: background 0.3s ease;
}
.faq-question:hover {
     background: #0056b3;
}
.faq-answer {
     display: none;
     padding: 20px;
     color: #333;
     line-height: 1.6;
     animation: fadeIn 0.3s ease;
}
.faq-item.active .faq-answer {
     display: block;
}
@keyframes fadeIn {
     from { opacity: 0; transform: translateY(-5px); }
     to   { opacity: 1; transform: translateY(0); }
}

/* Service Agreement */
.pdf-list {
     display: flex;
     flex-wrap: wrap;
     gap: 20px;
     justify-content: flex-start;
}
.pdf-card {
     background: #ffffff;
     border-radius: 10px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
     padding: 10px;
     width: 90%;
     text-align: center;
     cursor: pointer;
     transition: transform 0.2s ease, box-shadow 0.2s ease;
     position: relative;
     overflow: hidden;
}
.pdf-card:hover {
     transform: scale(1.04);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.pdf-card::after {
     content: "";
     position: absolute;
     bottom: 0;
     left: 0;
     height: 4px;
     width: 0;
     background-color: #007bff;
     transition: width 0.3s ease;
}
.pdf-card:hover::after {
     width: 100%;
}
.pdf-icon {
     font-size: 40px;
     color: #007bff;
     margin-bottom: 10px;
}
.pdf-name {
     font-size: 12px;
     color: #333;
     font-weight: 500;
     word-wrap: break-word;
}
/*  Modal Styles  */
.pdfmodal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}
.pdfmodal-content {
     background: #ffffff;
     border-radius: 10px;
     max-width: 90%;
     height: 90%;
     display: flex;
     flex-direction: column;
     box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
     overflow: hidden;
}
.pdfmodal-header {
     background-color: #007bff;
     color: #fff;
     font-size: 18px;
     font-weight: 600;
     padding: 12px 16px;
     display: flex;
     justify-content: space-between;
     align-items: center;
}
.close-btn {
     background: transparent;
     border: none;
     color: #fff;
     font-size: 22px;
     cursor: pointer;
     transition: color 0.2s ease;
}
.close-btn:hover {
     color: #ffcccc;
}
.pdfmodal-body {
     flex: 1;
     background: #f4f6f8;
}
.pdfmodal-body iframe {
     width: 100%;
     height: 100%;
     border: none;
}
/* Responsive Tweaks */
@media (max-width: 768px) {
     .pdf-list {
          justify-content: center;
     }
     .pdf-card {
          width: 90%;
     }
     .pdfmodal-content {
          height: 85%;
          width: 95%;
     }
}

/* Agreement Container */
.agreement-wrapper {
     display: flex;
     justify-content: center;
     background-color: #f8f9fb;
     padding: 2rem 0;
}
.agreement-content {
     background: #fff;
     color: #333;
     font-family: "Segoe UI", Roboto, Arial, sans-serif;
     font-size: 14px;
     max-width: 1500px;
     padding: 3rem;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     border: 1px solid #e1e4e8;
}
/* Signature Section */
.signature-section {
     margin-top: 3rem;
     padding-top: 1.5rem;
     border-top: 2px dashed #ccc;
     text-align: center;
}
.signature-section h3 {
     color: #004aad;
     margin-bottom: 1rem;
}
canvas#signature-pad {
     border: 2px dashed #ccc;
     border-radius: 8px;
     background: #fff;
     display: block;
     margin: 0 auto 1rem;
}
#scroll-buttons {
     position: fixed;
     right: 25px;
     bottom: 80px;
     display: flex;
     flex-direction: column;
     gap: 10px;
     z-index: 9999;
}
#scroll-buttons button {
     background: #004aad;
     color: #fff;
     border: none;
     border-radius: 50%;
     width: 45px;
     height: 45px;
     font-size: 22px;
     font-weight: bold;
     cursor: pointer;
     opacity: 0.75;
     transition: all 0.2s ease;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
#scroll-buttons button:hover {
     opacity: 1;
     transform: scale(1.1);
}
#scroll-buttons button:active {
     transform: scale(0.95);
}
/* Mobile responsiveness */
@media (max-width: 768px) {
     #scroll-buttons {
          right: 15px;
          bottom: 60px;
     }
     #scroll-buttons button {
          width: 40px;
          height: 40px;
          font-size: 20px;
     }
}
/* Optional - ensure very large text blocks split properly */
.agreement-content ul, li {
     font-style: normal !important;
     font-size: 14px !important;
     margin-left: 1.4rem;
     page-break-inside: auto !important;
}

/* Hint / Helper Text */
.hint {
     font-size: 0.85rem;
     color: #666;
     margin-top: 6px;
     margin-bottom: 10px;
     font-style: italic;
     line-height: 1.4;
}
.hint::before {
     content: "💡 ";
     font-style: normal;
     opacity: 0.8;
}

/* Partner display section on index.php page */
.partner-section {
     padding: 60px 0;
     background-color: #f9f9f9;
     text-align: center;
}
.partner-section .section-title {
     margin-bottom: 40px;
     font-size: 28px;
}
.partner-logos {
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 40px;
     flex-wrap: wrap;
}
.partner-item {
     flex: 0 0 auto;
}
.partner-logo {
     max-height: 200px;
     max-width: 200px;
     object-fit: contain;
     transition: transform 0.3s ease, opacity 0.3s ease;
}
.partner-logo:hover {
     transform: scale(1.05);
     opacity: 0.9;
}