/*
This is default section
*/

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css');

/*body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}*/

html, body {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: auto !important; /* This is the key to block all scrolling */
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;              /* This is the magic */
}

.login1 {
    /* Full screen background */
    background: url('../img/login-bg.jpg') center/cover no-repeat fixed;
    background-color: #ffffff;

    /* Exact full height – works on ALL phones */
    height: 100dvh;                     /* 2024–2025 standard */
    min-height: 100dvh;
    height: -webkit-fill-available;     /* iOS Safari */
    min-height: -webkit-fill-available;

    width: 100vw;
    margin: 0 !important;
    padding: 0 !important;

    /* Positioning */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;

    /* Centering */
    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


* {
    font-family: poppins, sans-serif;
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

:root {
    --linear-grad: linear-gradient(to right, #141E30, #243B55);
    --grad-clr1: #141E30;
    --grad-clr2: #243B55;
}

.selector-for-some-widget {
  box-sizing: content-box;
}

/* his is header login section */

.header-login {
    width: 100%;
    top: 0;
    display: grid;
    place-content: center;
}

.header-login h1 {
    color: #fff;
    margin: 20px 0px;
    font-weight: 600;
}

.conHeaderLogin {
    position: relative;
    width: 1000px;
    height: 90px;
    background: none;
    overflow: hidden;
}

/* this is header main section */

.header-main {
    position: absolute;
    background-color: #000000;
    width: 100%;
    top: 0;
    display: grid;
    place-content: center;
}

.header-main h1 {
    color: #fff;
    margin: 20px 0px;
    font-weight: 600;
}

.conHeaderMain {
    position: relative;
    height: 90px;
    background: none;
    overflow: hidden;
}

/* This is login section 1 */

.container {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    margin: 0 auto;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-radius: 13px;
    border: 1px solid #fff;
    overflow: hidden;
}

.form-control {
        background: rgba(255, 255, 255, 0.2);
        height: 40px;
    }

.form-control:focus {
        background: rgba(255, 255, 255, 0.3);
    }

.form-floating label {
    padding: 12px 12px;
    font-size: 12px;
}

.form-floating input {
    padding: 12px 12px;
    font-size: 12px;
    height: 10px;
}

.form-floating>.form-control {
    height: calc(3rem + calc(var(--bs-border-width) * 2));
    min-height: calc(3rem + calc(var(--bs-border-width) * 2));
}

.btn-login {
        transition: 0.3s;
    }

.btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    } 

    /* This is form section */

.form-container {
    position: absolute;
    width: 50%;
    height: 100%;
    padding: 0px 20px;
    transition: all 0.6s ease-in-out;
}

.sign-up-container {
    opacity: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    right: 0;
}

.sign-in-container {
    z-index: 2;
    justify-self: end;
    right: 0px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

form {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px 50px; 
}

form h1 {
    color: var(--grad-clr1);
}

.social-container {
    margin: 20px 0px;
}

.social-container a {
    border: 1px solid #DDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0px 5px;
    height: 40px;
    width: 40px;
}

span {
    field-sizing: 12px;
}

.infield {
    position: relative;
    margin: 0px 0px;
    width: 100%;
}

.infield i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #212529a6;
}

.toggle-password {
    cursor: pointer;
    z-index: 10;
}

#floatingTextarea {
    border-bottom-left-radius: 0px;;
    border-bottom-right-radius: 0px;;

}

#floatingInput2, #floatingPassword2 {
    border-radius: 0px;;
     border-top: 0px;
}

#numericInput {
    border-top-left-radius: 0px;;
    border-top-right-radius: 0px;;
     border-top: 0px;
}

input[type="email"]{
    border-bottom-left-radius: 0px;;
    border-bottom-right-radius: 0px;;
}

input[type="password"]{
    border-top-left-radius: 0px;;
    border-top-right-radius: 0px;;
     border-top: 0px;
}

input[type="checkbox"]{
    margin: 5px 0px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input {
    width: 100%;
    padding: 0px 0px;
    background-color: #ffffff;
    border: none;
    outline: none;
}

.two-cols {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
    
.two-cols .one {
    display: flex;
    gap: 5px;
    padding: 0px 0px;
}

.two-cols .two {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
    padding: 0px 0px;
}

.one label {
    display: inline;
    vertical-align: middle;
    color: #333;
    font-size: 11px;
    text-decoration: none;
    margin: 0px 0px;
    transform: translate(0%);
    transition: 0.3s;
}

.one input:focus ~ label {
    width: 100%;
}

.form-check-input:focus {
    box-shadow: none;
}

.two a {
    color: #333;
    font-size: 11px;
    text-decoration: none;
    margin: 0px 0px;
}

.two .forgot {
    padding-bottom: 3px;
    text-decoration: none;
}

.forgot:hover {
    text-decoration: underline;
}

button {
    width: 143.67px;
    height: 40px;
    border-radius: 20px;
    border: 1px solid var(--grad-clr1);
    background: #000000; /*var(--grad-clr2);*/
    color: #ffffff;
    font-size: 12px;
    padding: 5px 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-container button {
    margin-top: 17px;
    transition: 80ms ease-in;
}

.form-container button:hover {
    background: #fff;
    color: var(--grad-clr1);
}

/* */

/* ———————————— EMAIL VERIFICATION — YOUR ORIGINAL COLOR SCHEME ———————————— */
.wrapper-diff {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/img/login-bg.jpg') center/cover no-repeat fixed;
    padding: 20px;
    position: relative;
}

.wrapper-diff::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    height: 100%;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.wrapper-diff .container {
    position: relative;
    z-index: 2;
    max-width: 520px;
    width: 100%;
    background: none;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.wrapper-diff h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.wrapper-diff p#message {
    font-size: 1.15rem;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.6;
}

/* ———————————— BUTTON — BLACK + BLUE ACCENT (YOUR STYLE) ———————————— */
#button-container {
    margin-top: 0px;
}

#button-container button,
#button-container a.btn {
    display: inline-block;
    min-width: 220px;
    padding: 0px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
}

#button-container button:hover,
#button-container a.btn:hover {
    background: #FFC109;
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.5);
}

/* Responsive */
@media (max-width: 576px) {
    .wrapper-diff .container {
        padding: 50px 25px;
    }
    .wrapper-diff h2 { font-size: 2rem; }
    #button-container button,
    #button-container a.btn {
        width: 100%;
        padding: 0px;
    }
}


/* this is overlay section */

.overlay-container {
    position: absolute;
    top: 0;
    left: 0%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

/* Custom CSS: Ensure the invisible button is active and full size */
#overlayBtn {
    /* Make it cover the entire overlay area */
    position: absolute;
    top: 388px;
    left: 73px;
    width: 100%;
    height: 100%;
    width: 143.67px;
    height: 40px;
    
    /* Make it transparent and hide the default button appearance */
    background: transparent;
    border: 1px solid #000;
    z-index: 10; /* Ensure it is above the overlay text but below the flip animation */
    cursor: pointer;
}

.overlay {
    position: relative;
    /*background: var(--linear-grad);*/
    color: #ffffff;
    left: -150%;
    height: 100%;
    width: 250%;
    transition: transform 0.6s ease-in-out;
}

.overlay-panel {
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 0px 40px;
    text-align: left;
    height: 100%;
    width: 340px;
    transition: 0.6s ease-in-out;
}

.overlay-left {
    width: 30%;
   left: 5%;
   transform: translate(-12%);
}

.overlay-right {
    right: 10%;
    transform: translate(0%);
}

.overlay-right button {
    margin-top: 35px;
    width: 143.67px;
    border-radius: 20px;
    border: 1px solid var(--grad-clr1);
    background: var(--grad-clr2);
    color: #000000;
    font-size: 12px;
    padding: 5px 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.overlay-left button {
    margin-top: 25px;
    width: 143.67px;
    border-radius: 20px;
    border: 1px solid var(--grad-clr1);
    background: var(--grad-clr2);
    color: #000000;
    font-size: 12px;
    padding: 5px 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.overlay-panel h1 {
    color: #000000;
    font-size: 35px;
}

.overlay-panel h2 {
    color: #000000;
    font-size: 45px;
    font-weight: 700;
    margin: -50px 0px 30px 0px;
}

.overlay-container p {
    color: #000000;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0px;
    margin: 25px 0px 35px;
}

.overlay-panel button {
    border: none;
    background-color: transparent;
}

.left-panel-active .overlay-container {
    transform: translateX(100%);
}

.left-panel-active .overlay {
    transform: translateX(50%);
}

.left-panel-active .overlay-left {
    transform: translateX(25%);
}

.left-panel-active .overlay-right {
    transform: translateX(35%);
}

.left-panel-active .sign-in-container {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 4;
}

.left-panel-active .sign-up-container {
    transform: translateX(-100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%, 60% {
        opacity: 0;
        z-index: 1;
    }
    60.1%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.btnScaled {
    animation: scaleBtn 0.6s;
}

@keyframes scaleBtn {
    0% {
        width: 143.67px;
    }
    50% {
        width: 250px;
    }
    100% {
        width: 143.67px;
    }
}

/* this is overlay section end here */

/* this is modal section */

/* modal.css — BEAUTIFUL MODAL */
.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0,0,0,0.75);
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 9999; 
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease;
}
.modal-content {
    background: #fff; 
    width: 90%; 
    max-width: 420px;
    border-radius: 18px; 
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: popUp 0.5s ease;
}
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@keyframes popUp { from {transform:scale(0.7)} to {transform:scale(1)} }

.modal-header {
    padding: 20px 24px 10px;
    background: #000;
    color: #FFC109;
    position: relative;
}
.modal-header h2 { 
    margin: 0; 
    font-size: 14px; 
    font-weight: bold; 
}

.modal-close {
    position: absolute; 
    top: 12px; 
    right: 20px;
    font-size: 32px; 
    cursor: pointer; 
    color: #FFC109; 
    opacity: 0.8;
}
.modal-close:hover { 
    opacity: 1; 
}

.modal-body { 
    padding: 20px 24px; 
    font-size: 17px; 
    color: #000000; 
    text-align: center; 
}

.modal-footer { 
    padding: 0 24px 30px; 
    text-align: center; 
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFC109; 
    color: #000000;
    border: none; 
    padding: 0px;
    border-radius: 10px;
    font-size: 14px; 
    font-weight: 600;
    cursor: pointer; transition: all 0.3s;
}
.modal-btn:hover {
    background: #f8d56b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(196,255,1,0.4);
}

/* modal section end here */

/* this is register section */

.register-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 20px 40px 20px;   /* extra bottom padding for footer */
    overflow-y: auto !important;
    background: none;
    z-index: 1000;
}

.register-card {
    width: 600px;
    max-width: 900px;
    background: white;
    padding: 45px;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
}
.register-card > h1 {
    text-align: center;
    font-size: 15px;
    color: #000000;
    margin-bottom: 25px;
    font-weight: 500;
}

.profile-box {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    border: none;
}

.profile-box form {
    width: 100% !important;
    padding: 0;
}

.profile-box span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.profile-box h2 {
    text-align: center;
    font-size: 21px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 22px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #000000;
}

/* Form rows */
.form-row { 
    margin-bottom: 16px; 
    width: 100%;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.form-row input {
    width: 100%;
    padding: 11px 14px;
    border: 1.8px solid #ccc;
    border-radius: 9px;
    font-size: 15px;
}
.form-row input[readonly] {
    background: #f8f9fa;
    color: #666;
}

/* Double column */
.form-row.double {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.form-row.double .col { 
    flex: 1; 
}

.form-row.double input { 
    margin-bottom: 10px; 
}

/* Radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 6px;
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    cursor: pointer;
}
.radio-group input[type="radio"] {
    width: 18px; height: 18px;
    accent-color: rgb(255, 0, 0);
}

/* Member form */
.member-form {
    margin-top: 0px;
    padding: 0px;
    background: none;
    border: none;
    animation: fadeIn 0.5s ease;
}

/* Member form appears below — normal document flow */
#memberForm {
  margin-top: 50px;
  padding: 0px;
  background: none;
  color: white;
}

/* Force footer to bottom ONLY on register.php */
body:has(.register-container) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(.register-container) .footerMain {
  margin-top: auto;
}

.member-form h3 {
    text-align: center;
    color: #000000;
    font-size: 21px;
    font-weight: 600;
    margin: 0 0 20px 0;
}
.member-form input {
    margin-bottom: 14px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* DONE button */
.done-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5px 10px;
    margin-top: 25px;
    background: #000;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.done-btn:hover { 
    background: #FFC109; 
}

/* Mobile */
@media (max-width: 600px) {
  .form-row.double { flex-direction: column; }
  .register-container { padding: 0 10px; }
}

@media (max-width: 768px) {
    .register-container {
        position: static;           /* remove absolute on mobile */
        transform: none;
        max-width: none;
        padding: 20px 15px;
        margin: 20px auto;
    }
    
    .register-card {
        padding: 30px 20px !important;
        border-radius: 16px !important;
    }
    
    /* Optional: make inputs bigger on mobile */
    .register-card input,
    .register-card .done-btn {
        font-size: 16px !important;   /* prevents zoom on iOS */
        padding: 14px 16px !important;
    }
}

/* register section end here */

/* this is navbar section */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 110px;
    height: 100vh;
    padding: 0 1.7rem;
    color: #fff;
    overflow: hidden;
    transition: all 0.5s ease;
    background: #000000;
    z-index: 2;
}

.sidebar:hover {
    width: 250px !important;
    transition: all 0.5s;
}

.sidebar:hover .logo{
    /*transition: all 0.5s ease;*/
    font-size: 30px;
    font-weight: 600;
}

.sidebar:hover ~ main {
    padding-left: 250px;                    
}

.logo {
    height: 80px;
    padding: 16px;
    font-size: 10px;
    transition: all 0.5s ease;
    align-items: center;
    justify-content: center;
    display: flex;
    cursor: pointer;
}


.menu {
    height: 100%;
    position: relative;
    padding: 0;
}

.menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu li {
    padding: 1rem;
    margin: 8px 0;
    border-radius: 8px;
    transition: all 0.5s ease-in-out;
}

.menu li:hover,
.menu li.active,
.menu li:has(> a.active) {
    background: #FFC107;   
}

.menu li:hover a,
.menu li.active a,
.menu li:hover i,
.menu li.active i,
.menu li:has(> a.active) a {
    color: #000 !important;
    font-weight: 600;
}


.menu li span.tooltip {
    position: absolute;
    left: 120px;                    
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 999;
}

.sidebar:not(:hover) .menu li:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.menu a span.nav-item, .bottom-content li div span.nav-item {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    white-space: nowrap;
    width: 0;
}

.sidebar:hover .nav-item {
    opacity: 1;
    width: auto;
    transition-delay: 0.3s;
}

.menu a {
    text-decoration: none;
    font-size: 14px;
    color: #FFC107;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu a i {
    font-size: 1.2rem;
}

.bottom-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 20px;
}

.bottom-content a, .bottom-content li div {
    text-decoration: none;
    font-size: 14px;
    color: #FFC107;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.bottom-content a i, .bottom-content li div i {
    font-size: 1.2rem;
}

.bottom-content ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.bottom-content li {
    padding: 1rem;
    margin: 8px 0;
    border-radius: 8px;
    transition: all 0.5s ease-in-out;
}

.bottom-content li:hover,
.menu li.active {
    background: #FFC107;   
}

.bottom-content li:hover a,
.bottom-content li.active a,
.bottom-content li:hover i,
.bottom-content li.active i,
.bottom-content li:hover div span {
    color: #000 !important;
    font-weight: 600;
}


.bottom-content li span.tooltip {
    position: absolute;
    left: 120px;                    
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 999;
}


.menu .nav-admin {
    display: none;
}

.menu .nav-superadmin {
    display: none;
}

.sidebar.force-expand,
.sidebar.force-expand:hover {
  width: 250px !important;
}
.sidebar.force-expand .nav-item,
.sidebar.force-expand .logo span:not(.logo-icon) {
  opacity: 1 !important;
}

.sidebar-mobile-utility-menu {
    display: none; 
    list-style: none;
    padding: 0;
    margin: 0;
}

/* .sidebar .bottom-content {
        display: none !important;
    } */

/* this is navbar end here */

/* this is header section */

main {
    padding-left: 110px;                    
    transition: padding-left 0.5s ease;     
    background: #f5f5f5;
}

.main-content {
    position: relative;
    background: #fff;
    width: 100%;
    flex: 1;                    /* pushes footer down */
    padding-bottom: 10px;
}

.header-wrapper img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.header-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;   
    align-items: center;               
    gap: 20px;                         
    padding: 15px 2rem;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.header-title {
    flex: 1;                
    min-width: 0;           
    overflow: hidden;
}

.header-title h2 {
    font-size: 22px;
    line-height: 1.4;
}

.header-title p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* On small screens: switch to vertical stacking ONLY when really needed */
@media (max-width: 768px) {
    .header-wrapper2 {
        grid-template-columns: 1fr;     
        text-align: center;
    }
    
    .user-info {
        justify-self: end;              
        margin-top: 10px;
    }
    
    /* Optional: make the title centered on mobile */
    .header-title2 {
        text-align: center;
    }
}

/* Extra small screens (phones) – make search full width if you prefer */
@media (max-width: 480px) {
    .search-box {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .search-box input {
        width: 100%;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.search-box {
    background: #F5F5F5;
    border-radius: 15px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
}

.search-box input {
    background: transparent;
    padding: 10px;
}

.search-box i {
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.5s ease-out;
}

.search-box i:hover {
    transform: scale(1.2);
}

.notification-bell {
    position: relative;
    display: inline-block;
    z-index: 800;
}

.notification-bell .bell-btn,
.profile-all {
    /* Base styling for both the notification bell and profile button */
    width: 40px;
    background-color: #ffffff; 
    border: none;
    cursor: pointer;
    border-radius: 8px; /* Slightly rounded rectangle buttons */
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.notification-bell .bell-btn i,
.profile-all i {
    font-size: 35px;
    color: #000000;
    transition: color 0.2s;
}

.notification-bell .bell-btn:hover,
.profile-all:hover {
    color: #FFC109;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.notification-bell .bell-btn:hover i,
.profile-all:hover i {
    color: #FFC109;
}


/* Badge */
.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ff3b30;
  color: white;
  font-size: 10px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Dropdown Panel */
.notification-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1000;
}

.sidebar ul li .notification-badge {
    /* Reset position for sidebar list item */
    position: absolute;
    /* Adjust positioning to place it near the Notification text */
    top: 10px; /* Vertically align with the text/icon */
    right: 35px; /* Position it to the right of the 'Notification' text */
    z-index: 10;
    
    /* Ensure the existing badge styles are kept */
    background: #FFC107;
    color: #000;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    height: 20px;
    line-height: 16px;
    border: 2px solid #fff;
}

/* Open state */
.bell-open .notification-panel {
  max-height: 600px;
  opacity: 1;
  padding: 1rem 0;
}

/* Header */
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem 1rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 0.5rem;
}
.notif-header h3 { 
    margin: 0; 
    font-size: 18px; 
}

.mark-all-read { 
    font-size: 13px; 
    color: #000; 
    cursor: pointer; 
}

/* List */
.notif-list {
  max-height: 400px;
  overflow-y: auto;
}
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 1.5rem;
  transition: background 0.2s;
}
.notif-item:hover { background: #f9f9f9; }
.notif-item.unread { background: rgba(196, 255, 1, 0.05); }
.notif-item i {
  font-size: 20px;
  color: #FFC107;
  margin-top: 4px;
}
.notif-content p {
  margin: 0 0 4px 0;
  font-size: 14px;
}
.notif-content strong { color: #222; }
.notif-time {
  font-size: 12px;
  color: #999;
}

/* Footer */
.notif-footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #eee;
  margin-top: 0.5rem;
}
.notif-footer a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
  .notification-panel {
    width: 320px;
    right: -20px;
  }
}

.page-user-greeting {
  margin-top: 12px;
  font-size: 1.4rem;
  color: #000000;
  text-align: left;
  font-weight: 500;
}

.page-user-greeting span {
  color: #666;
  font-weight: 400;
}

.page-user-greeting strong {
  color: #000000;
  font-weight: 700;
  font-size: 1.7rem;
  margin: 0 8px;
  letter-spacing: 1px;
}

/* Basic CSS for the Notification Page (Should be merged into your main CSS file) */

.notification-container {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.notification-header {
    /* REMOVED flex properties to allow the button to sit below */
    /* display: flex; */ 
    /* justify-content: space-between; */
    /* align-items: center; */
    margin-bottom: 5px; /* Reduced space after title */
}

.notification-header h2 {
    font-size: 1.5rem;
    color: var(--text-color-dark); /* Use your theme variable */
}

/* NEW: Styles for the button now sitting below the header */
.mark-all-below-header {
    display: block; /* Ensure button takes full block space */
    float: right; /* Aligns the button to the right */
    margin-bottom: 20px; /* Adds space before the notification list starts */
}

/* Clear the float so the list starts below the button */
.notification-list {
    clear: both;
    list-style: none;
    padding: 0;
}

.notification-item {
    background-color: var(--card-bg-light); /* Use your light card color */
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    border-radius: 8px;
    transition: background-color 0.3s, border-left 0.3s;
    overflow: hidden;
    /* Ensure cursor is a pointer when hovering over the whole item */
    cursor: pointer; 
}

.notification-link {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.unread {
    background-color: var(--unread-notification-bg, #fffbe0); /* Light yellow background for unread */
    border-left: 5px solid var(--primary-color); /* Highlight unread items */
}

.unread:hover {
    background-color: var(--unread-notification-hover, #fff5c0);
}

.read {
    opacity: 0.7;
}

.read:hover {
    opacity: 1;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: #fff;
    font-size: 1.2rem;
}

/* Status-based icon colors */
.notification-icon.status-completed { background-color: #28a745; } /* Green */
.notification-icon.status-pending { background-color: #ffc107; } /* Yellow */
.notification-icon.status-expired { background-color: #6c757d; } /* Grey/System */
.notification-icon.status-invalid { background-color: #dc3545; } /* Red */


.notification-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.notification-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-color-medium); /* Use your subtle text color */
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-color-light); /* Use your lightest text color */
    margin-top: 5px;
    align-self: flex-end; /* Time to the right on desktop */
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: var(--text-color-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Toast Styling (Based on your admin-payment-history.php pattern) */
.toast-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.success-toast {
    background-color: #28a745; /* Success Green */
}
.warning-toast {
    background-color: #ffc107; /* Warning Yellow */
    color: #333;
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 600px) {
    .notification-container {
        padding: 10px;
    }
    .notification-item {
        border-radius: 0;
        border-left: none; /* No border on mobile for cleaner edge-to-edge look */
    }
    .unread {
        border-left: 5px solid var(--primary-color);
    }
    .notification-link {
        flex-direction: row;
        align-items: flex-start;
    }
    /* Move time stamp slightly to the right */
    .notification-time {
        align-self: flex-start;
        margin-left: 10px;
        white-space: nowrap; /* Prevents wrapping */
    }
    /* Ensure content takes available space, pushing time to the side */
    .notification-content {
         width: 100%;
    }

    .notification-header h2 {
    text-align: center;
    }
}

/* this is header section end here */

/* this is content section */

/* card section */

.card-container {
    background: #ffffff;
    padding: 2rem 0px 0px 0px;
    border-radius: 10px;
}

.card-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   
    gap: 1.5rem;                             
    padding: 1.5rem;
    background: transparent;                 
    border-radius: 16px;
    max-width: 1600px;
    margin: 0 auto;
}

.report-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   
    gap: 1.5rem;                           
    padding: 1.5rem;
    background: transparent;                 
    border-radius: 16px;
    max-width: 1600px;
    margin: 0 auto;
}

.payment-wrapper {
    display: grid;  
    gap: 1.5rem;                             
    padding: 1.5rem;
    background: transparent;                 
    border-radius: 16px;
    max-width: 1600px;
    margin: 0 auto;
}

.payment-wrapper .status-badge {
    padding: 5px 5px 5px 10px;
    border-radius: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    background: none;
    color: #000;
}

#paymentHistoryTable {
    width: 100%;
}

.report-title {
    grid-column-start: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
}

.report-title h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    white-space: nowrap;
}

.table-actions {
    /* 1. Push the entire container to the right */
    float: right; 
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    /* OR use margin-left: auto if inside a main flex container */
    
    /* 2. Enable Flexbox */
    display: flex;
    /* 3. Space items nicely */
    gap: 10px; /* Adds space between the input and the button */
    
    /* Optional: Vertically center if the button/input have different heights */
    align-items: center; 
}

.table-actionsv2 {
        width: 100%; 
        background: none; 
        display: flex; 
        justify-content: flex-end !important;
    }

/* Optional: Improve the appearance of the date picker */
#reportMonthSelector {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 12px;
    height: 38px; /* Match button height for better visual alignment */
}

#exportReportsBtn {
    /* Ensure the button is styled consistently */
    height: 38px;
    width: 350px;
    background: none;
    border: none;
}

.exportReportsBtnv2 {
    /* Ensure the button is styled consistently */
    height: 38px;
    width: 350px;
    background: none;
    border: none;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .card-wrapper {
        grid-template-columns: repeat(2, 1fr);   /* 2 cards on tablet */
    }
}

@media (max-width: 768px) {
    .card-wrapper {
        grid-template-columns: 1fr;              /* 1 card on mobile */
        gap: 1rem;
        padding: 1rem;
    }

    .card-content.create-task-cta {
    grid-column-start: 1 !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important; 
    gap: 1.5rem;
    padding: 1.5rem;
    background: none;
    border-radius: 10px;
    transition: all 0.5s ease-in-out;
    width: 100% !important;
    }

    .create-task-btn {
        width: 100% !important;
    }

}

.card-content {
    display: flex;                
    align-items: center;          
    gap: 1.5rem;                  
    padding: 1.5rem;
    background: #FFC107;
    border-radius: 10px;
    width: 100%;
    height: 120px;
    justify-content: space-between;
    transition: all 0.5s ease-in-out;
}

.card-content:hover {
    transform: translateY(-5px);
}

.icon-container {
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.4);  
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.icon-container i {
    font-size: 40px;
    color: #000000;              
    opacity: 1 !important;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header {
    flex: 1;                      
}

.total {
    display: flex;
    flex-direction: column;
}

.title {
    text-transform: uppercase;
    font-size: 14px;
    color: #000000;
    margin-bottom: 4px;
}

.total-value {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    font-family: 'Courier New', Courier, monospace;
}

/*card section end here*/

/* filter section */

.filter-wrapper {
    max-width: 1600px;
    margin: 0 auto; 
    padding: 0 1.5rem;
}

.toggle-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}

.filter-toggle-btn {
    text-align: center;
    margin: 1.5rem 0;
}

.toggle-btn {
    width: 80px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: #fff;
    border-radius: 5px;
    border: solid 1px #FFC107;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover { 
    background: #FFC107; 
    border-color: #FFC107; 
    color: #000; 
}

.chevron { 
    transition: transform 0.3s ease; 
}

body.open .chevron { 
    transform: rotate(180deg); 
}

/* Dropdown Panel - hidden → slides down below button */
.filter-dropdown-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    opacity: 0;
    margin-top: 0;
    }

/* Open state */
body.open .filter-dropdown-panel,
.filter-dropdown-panel.active {
    max-height: 350px;
    padding: 1.8rem;
    opacity: 1;
    background: #F5F5F5;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.filter-sort-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

body.open .filter-sort-section {
    max-height: 250px;   
    padding: 0 auto;
    opacity: 1;
}

.filter-sort-section { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 1rem; 
}

.filter-right { 
    width: 80%;
    display: flex; 
    gap: 1rem;  
    align-items: center;
    font-size: 12px;
    justify-content: flex-end;
}

.filter-left h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0px;
}

.filter-left p {
    font-size: 16px;
}

.search-filter { 
    position: relative; 
    width: 240px; 
}

.search-filter i { 
    position: absolute; 
    left: 14px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #aaa; 
}

.search-filter input { 
    width: 100%; 
    padding: 12px 14px 12px 44px; 
    border: 1px solid #ddd; 
    border-radius: 12px; 
}

.filter-select { 
    padding: 12px 16px; 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    min-width: 160px; 
}

/* 1. Layout for the entire group */
.filter-checkbox-group {
    /* Use Flexbox to align direct children (Status and Role groups) */
    display: flex;
    /* Ensure there is space between the Status and Role boxes */
    gap: 20px; 
    /* Allow the groups to wrap to the next line on small screens */
    flex-wrap: wrap; 
}

/* Style for individual filter groups (Status and Role) */
.filter-group {
    /* Give each group a flexible basis (e.g., allow it to take up about half the space) */
    flex: 1; 
    /* Add some visual separation */
    padding: 15px; 
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Style the lists of checkboxes */
.checkbox-options {
    /* Use Flexbox here too, to potentially line up individual checkboxes horizontally, 
       or just manage vertical spacing. */
    display: flex; 
    flex-direction: column; /* Keep checkboxes stacked vertically by default */
    gap: 5px; /* Spacing between checkboxes */
}

/* 2. Checkbox container (the custom label) */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px; /* Space for the custom checkbox */
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
    line-height: 20px; /* Ensure text alignment */
}

/* 3. Hide the browser's default checkbox */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* 4. Create a custom checkmark (the visible box) */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* On hover, slightly change the border color */
.checkbox-container:hover input ~ .checkmark {
    border-color: #FFC107;
}

/* 5. Style the checkmark when checked */
.checkbox-container input:checked ~ .checkmark {
    background-color: #FFC107; /* Use your brand color */
    border-color: #FFC107;
}

/* 6. Create the checkmark indicator/icon (hidden when unchecked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark indicator */
.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #000; /* Checkmark color (black for better contrast on yellow) */
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .filter-right {
        flex-direction: column;   
        width: 100%;
    }
    .search-filter,
    .filter-select {
        width: 100%;               
    }

    /* --- ADDED CODE START --- */
    /* Forces the search input and the reset button to stack vertically */
    .filter-controls-top {
        display: flex;
        flex-direction: column;
        gap: 10px; /* Adds space between search and reset */
        width: 100%;
    }

    /* Ensures the Reset button takes full width for visibility */
    .filter-controls-top #filterResetBtn {
        width: 100%;
    }
    /* --- ADDED CODE END --- */

    body.open .filter-sort-section {
    height: 350px;   
    padding: 0 auto;
    opacity: 1;
    }

    body.open .filter-dropdown-panel {
    height: auto ;
    padding: 1rem;
    opacity: 1;
    background: #F5F5F5;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }

    .filter-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    }
}

/*filter section end here*/

/*table section*/

.table-container {
    max-width: 1600px;
    margin: 0 auto; 
    padding: 0 1.5rem 2rem 1.5rem;
}

.table-title {
    max-width: 1600px;
    margin: 0 auto; 
    padding: 2rem 1.5rem 0.5rem 1.5rem;
}

.table-title h2 {
    color: #000;
    font-size: 18px;
    text-align: left;
}

.table-wrapper {
    max-height: 450px;
    overflow-y: auto;
    background: none;
    border-radius: 10px;
    padding: 0;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;                  
    border-radius: 12px;
    overflow: auto;                  
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-wrap: nowrap;
}

.task-table th:first-child {
    margin-top: 0;
    width: 500px;
}

.task-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #000;               
    color: #ffffff;                    
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.task-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    text-align: center !important;
}

.task-table tbody {
    background: #ffffff; 
    font-size: 12px;              
}

.task-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.task-table tbody tr:hover {
    background: #fff8ae;               
}

.task-table tbody td {
    padding: 16px 20px;
    color: #333;
}

.task-table tbody tr:nth-child(even) {
    background: #ececec;
}

.task-table tbody td:first-child {  
    text-align: left !important;
}

.task-table tbody td {
    text-align: center;
}

/* Base styles for status badge */
.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    text-align: center;
    /* Use solid color background as requested by user's old scheme */
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
    transition: opacity 0.2s, box-shadow 0.2s;
}

/* Styles for status used as a button (clickable states: do-task, failed) */
.task-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 20px; /* Use the status badge radius */
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    width: 100%; /* Wider button for action */
    max-width: 150px;
    text-wrap: nowrap;
}
.task-action-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* PENDING (New State - Blue - #0079FF) */
.status-pending {
    background: #0079FF; 
    color: #ffffff; 
    cursor: pointer;
    border-radius: 5px;
    padding: 10px 20px;
}

/* Do Task (RED - #FF0000) */
.status-do-task {
    background: #FF0000; 
    color: #ffffff; 
    border-radius: 5px;
    padding: 10px 20px;
}

.status-submit {
    background: #FFC107; 
    color: #ffffff; 
    cursor: default;
    border-radius: 5px;
    padding: 10px 20px;
}

/* Review (AMBER/YELLOW - #FFC109) */
.status-review {
    background: #FFC109; 
    color: #ffffff; 
    cursor: default;
    border-radius: 5px;
    padding: 10px 20px;
}

/* Completed (Green - #FFC109) */
.status-completed {
    background: #218838; 
    color: #ffffff; 
    cursor: default;
    border-radius: 5px;
    padding: 10px 20px;
}

/* Expired (New State - Gray - #a7a7a7) */
.status-expired {
    background: #a7a7a7; 
    color: #ffffff; 
    cursor: default;
    border-radius: 5px;
    padding: 10px 20px;
}

/* Failed/Invalid (Dark Red - #721c24, using White text for better contrast) */
.status-failed,
.status-invalid { 
    background: #721c24; 
    color: #fff; 
    cursor: default; /* Ensure non-clickable failed status looks inactive */
    border-radius: 5px;
    padding: 10px 20px;
}

/* ====================================================== */
/* PAGINATION STYLES */
/* ====================================================== */

.pagination-container {
    display: flex;
    justify-content: space-between; /* Space out the info and the controls */
    align-items: center;
    margin-top: 20px;
    padding: 0 1.5rem 2rem 1.5rem;
    border-top: 1px solid #eee; /* Separator line above pagination */
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between buttons and page numbers */
}

.pagination-btn {
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    width: 45px;
}

.pagination-btn i {
    font-size: 18px;
    margin: 0px;
    color: #000;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #e3e3e3;
    border-color: #c0c0c0;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s;
}

.page-number:hover:not(.active) {
    background-color: #f8f9fa;
}

.page-number.active {
    background-color: #FFC107; /* Your brand color */
    border-color: #FFC107;
    color: #333; /* Dark text for contrast */
    font-weight: bold;
    cursor: default;
}

@media (max-width: 600px) {
    .pagination-container {
        /* 1. Stack items vertically */
        flex-direction: column;
        
        /* 2. Center items horizontally within the container */
        justify-content: center;
        align-items: center; 
        
        gap: 15px; /* Add space between the stacked info and controls */
        
        padding: 1rem 1rem 1.5rem 1rem; /* Adjust padding for mobile edges */
    }

    .pagination-info {
        /* Center the "Showing X of Y" text */
        text-align: center;
        width: 100%; /* Ensure it spans the full width for centering */
        order: 1; /* Keep the info text at the top */
    }
    
    .pagination-controls {
        /* Center the control buttons group */
        justify-content: center;
        width: 100%;
        order: 2; /* Keep the controls below the info text */
    }
}

.wrapper-verifier-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapper-verifier-button button {
    width: 200px !important;
    margin: 0px 0px 0px 10px;
    border-radius: 10px;
    border: none;
    transition: all 0.5s ease-in-out;
    background: none;
}

.back-btn {
    text-decoration: none !important;
    width: 200px !important;
    background-color: #d7d7d7;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #000;
    border: none;
    transition: all 0.5s ease-in-out;
}

.back-btn span {
    margin: 0px 0px 0px 5px;
}

.back-btn i {
    margin: 0px 5px;
}

.reject-btn:hover,
.verify-btn:hover,
.back-btn:hover {
    transform: translateY(-5px);
}

.verify-btn {
    background-color: #4CAF50 !important;
    color: white;
}

.view-more-container {
        display: flex;
        justify-content: center;
        margin-top: 30px;
        margin-bottom: 20px;
    }

@media (max-width: 768px) {
    .wrapper-verifier-button button {
        width: 110px !important;
        margin: 0px 0px 0px 10px;
        border-radius: 10px;
    }

    .back-btn {
        text-decoration: none !important;
        width: 110px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
    }

    .back-btn span {
        display: none;
    }

    .reject-btn:hover,
    .verify-btn:hover,
    .back-btn:hover {
        transform: none;
    }

}


/*table section end here*/

/*content end here*/

/*this is footer section*/

.footerMain {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: #000;
    color: #ffffff;
    font-size: 8px;
    margin-top: auto;           /* Forces it to bottom */
}

.footerMain p {
    margin: 0;
    font-weight: 500;
}

.footer1 {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: none;
    color: #000000;
    text-align: center;
    padding: 15px 0;
    font-size: 8px;
    font-weight: 500;
    z-index: 999;
    border: none;
}

.footer1 p {
    margin: 0;
    letter-spacing: 0.8px;
    color: #ffffff;
}

.menu .footer-mobile {
    display: none;  
}

@media (max-width: 768px) {
    .footer1 {
        padding: 12px 0;
        font-size: 8px;
    }

    
}

/* footer section end here */

.task-card-list {
    display: none;
}

.mobile-fixed-header {
    display: none; /* Hidden by default, shown on mobile */
}

/* Ensure mobile-only elements are hidden by default (desktop view) */
.nav-mobile-utility, .footer-mobile, .mobile-nav-bar {
    display: none !important;
}

/*
Task Details Page Styles (For task-details.php)
*/

.main-content-task-details {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 2rem;
    z-index: 900;
}

.task-details-wrapper {
    height: auto;
    max-width: 100%;
    padding: 15px 2rem;
    /* background-color: #F5F5F5;
    border-radius: 10px; */
}

.task-detail-card {
    background-color: #828282;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 20px;
}

.task-detail-card .header-info {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.task-detail-card .header-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2b3a55;
    margin-bottom: 5px;
}

.task-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #6c757d;
}

.meta-item i {
    font-size: 1.2rem;
    margin-right: 8px;
    color: #ff6b6b; /* Accent color */
}

.reward-tag {
    background-color: #17a2b8;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.4);
}

.detail-section {
    margin-bottom: 30px;
    padding: 20px 0;
}

.detail-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2b3a55;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.task-instructions p {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 15px;
}

.user-select-none {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#copyBtn {
  background: #000;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);

  /* smooth motion */
  transition: 
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

#copyBtn:hover {
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}

#copyBtn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


/* Submission Form Styling */
.submission-form .form-group {
    margin-bottom: 20px;
}

.submission-form label {
    display: block;
    font-weight: 600;
    color: #2b3a55;
    margin-bottom: 8px;
    font-size: 1rem;
}

.submission-form textarea,
.submission-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
}

.submission-form textarea:focus,
.submission-form input[type="text"]:focus {
    border-color: #2b3a55;
    box-shadow: 0 0 0 3px rgba(43, 58, 85, 0.1);
    outline: none;
}

.submission-form textarea {
    min-height: 150px;
}

/* Custom File Upload Styling */
.submission-file-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 2px dashed #ced4da;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submission-file-upload:hover {
    border-color: #ff6b6b;
    background-color: #fffafb;
}

.submission-file-upload input[type="file"] {
    display: none;
}

.submission-file-upload i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.submission-file-upload span {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

.submit-task-btn {
    width: 100%;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    background-color: #28a745;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.submit-task-btn:hover {
    background-color: #218838;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.current-status {
    text-align: center;
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.status-badge.do-task {
    background-color: #17a2b8;
    color: white;
}
.status-badge.pending-review {
    background-color: #ffc107;
    color: #333;
}
.status-badge.approved {
    background-color: #28a745;
    color: white;
}

/* task admin page */

/* Styling for the Create New Task Card/Button */
.card-content.create-task-cta {
    /* Reset these rules to auto for stacking */
    grid-column-start: 3; 
    align-self: end;
    
    /* Internal card styles (keep your styles here) */
    display: flex;
    align-items: end;
    justify-content: flex-end; 
    gap: 1.5rem;
    padding: 0px;
    background: none;
    border-radius: 10px;
    
    transition: all 0.5s ease-in-out;
}

.create-task-cta:hover {
    background-color: none; /* Light blue background on hover */
}

/* Style the anchor tag to fill the card and center content */
.create-task-btn {
    display: flex;
    flex-direction: row;        
    align-items: center;        
    justify-content: center;
    text-decoration: none;
    padding: 5px 0px;
    width: 70%;
    height: 40px;
    gap: 10px;
    background-color: #0079FF;
    border-radius: 5px;
}

.create-task-btn {
    transition: transform 0.3s ease;
}

.create-task-btn button {
    background: none;
    border: none;
}

/* Ensure the icon itself is white and the correct size */
.create-task-btn i {
    font-size: 1rem;
    color: #ffffff;
    padding: 0px 10px;
}

.cta-text {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    width: 100%;
    padding: 0px 10px;

    white-space: nowrap;     /* 1. Prevents the text from wrapping to the next line */
    overflow: hidden;        /* 2. Hides any text that overflows the container */
    text-overflow: ellipsis;
}

.cta-subtext {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* --- ADMIN CREATE TASK FORM STYLES --- */

.form-container-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-small);
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for desktop */
    gap: 20px 30px;
    margin-bottom: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 12px 0px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-bg-color, #F5F5F5); 
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box; 
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
    outline: none;
}

/* Checkbox group styling */
.actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.action-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.action-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Submit Button and Loading Spinner */
.submit-btn {
    color: rgb(0, 0, 0);
    background: #FFC107;
    padding: 12px 30px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    width: 250px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; 
    text-decoration: none;
}

.submit-btn:hover {
    background: #000000;
    color: #ffffff !important;
    transform: translateY(-5px);
}

.submit-btn:disabled {
    background-color: var(--text-color-light);
    cursor: not-allowed;
}

.submit-btn span {
    transition: opacity 0.3s;
}

.submit-btn.loading span {
    opacity: 0;
}

.loading-spinner {
    display: none; /* Initially hidden */
    position: absolute;
    width: 24px;
    height: 24px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.submit-btn.loading .loading-spinner {
    display: block;
}

.create-task {
    border: 1px solid #dedede;
    padding: 20px;
    border-radius: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    
    /* 1. Collapse Form Grid to a Single Column */
    .form-grid {
        grid-template-columns: 1fr; /* Changes 2-column layout to 1 column */
    }
    
    /* 2. Optimize Card Padding and Margins for Mobile Screens */
    .form-container-card {
        padding: 20px 15px; /* Reduce padding horizontally */
        margin-top: 15px;   /* Minor adjustment */
    }
    
    /* 3. Stack Checkbox Actions Vertically */
    .actions-group {
        flex-direction: column; /* Stack checkboxes instead of inline */
        gap: 8px;
    }
}

/* create task end */

/* Add this to custom.css (for support page) */

/* ———————————————————— SUPPORT PAGE ———————————————————— */
.support-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background-attachment: fixed;
}

.support-card {
  background: rgb(242, 242, 242);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 50px 0px;
  max-width: 800px;
  width: 100%;
  text-align: center;
  color: white;
}

.support-card h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #00d4ff;
  text-shadow: 0 2px 10px rgba(0,212,255,0.3);
}

.support-card .form-row {
  margin-bottom: 30px;
}

.support-card label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  color: rgb(0, 0, 0);
  text-align: left;
}

.support-card select,
.support-card textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: rgb(0, 0, 0);
  font-size: 14px;
  resize: none;
  background: #fff;
}

.support-card textarea {
  min-height: 150px;
}

.support-card .done-btn {
    width: 50%;
    margin-top: 20px;
    padding: 16px 60px;
    background: #000;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-card .done-btn:hover {
    background: #ffffff;
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(52, 52, 52, 0.5);
}

.custom-select-wrapper { position: relative; margin-bottom: 35px; }

#customBankSelect.custom-select {
  border: 1.8px solid #ccc;
  background: #ffffff;
    color: #969696;
}

.custom-select {
  position: relative;
  width: 100%;
  border-radius: 10px;
  background: #F5F5F5;
    color: #000;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 18px;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
}

.custom-select__trigger i {
  font-size: 1.8rem;
  color: #000000;
  transition: transform 0.4s ease;
}

.custom-select.open .custom-select__trigger i {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border: none;
  border-radius: 10px;
  margin-top: 12px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.custom-select.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  display: grid;
  z-index: 900;
  height: 200px;
}

.custom-option {
  padding: 18px 28px;
  color: rgba(0, 0, 0, 0.9);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0,212,255,0.15);
  pointer-events: auto !important;
}

.custom-option:hover {
  background: #FFC107;
  color: #000;
}

.custom-option:last-child { border-bottom: none; }

.payment-history-action {
        /* Centering the button container */
        display: flex;
        justify-content: center;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    #admin-dashboard-task-list .viewBtn, #adm-db-task-card .viewBtn,
    #admin-table .viewBtn, #admin-card .viewBtn,
    .history-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 25px;
        /* Using the info color from the card section for distinction */
        background-color: #FFC107; 
        color: rgb(0, 0, 0);
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 1.05em;
        transition: background-color 0.3s, transform 0.3s ;
        border: none;
        cursor: pointer;
    }

    .history-btn:hover {
        background-color: #f2f2f2;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(23, 162, 184, 0.6);
    }

    .history-btn i {
        font-size: 1.2em;
    }

    .report1-wrapper {                      
    padding: 1.5rem;
    background: transparent;                 
    border-radius: 16px;
    max-width: 1600px;
    margin: 0 auto;
    }

    .header-action-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding: 10px 0;
        gap: 1rem;
    }

    .action-left, .action-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .action-right button {
        min-width: 200px !important;
        transition: all 0.3s ease;
        border-radius: 10px;
    }

    .action-right button:hover {
        background-color: #218838;
        transform: translateY(-2px);
    }

    .dashboard-select {
        padding: 8px 12px;
        border: 1px solid #000;
        border-radius: 6px;
        background-color: var(--card-bg);
        cursor: pointer;
        font-size: 1em;
        min-width: 150px;
    }
    .dashboard-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
        outline: none;
    }

    /* Payout Amount Style */
    .payout-amount-value {
        font-weight: 600;
        color: var(--success-color); /* Changed to success color for paid amount */
    }

    /* Success Toast Message */
    .success-toast {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: var(--success-color);
        color: white;
        padding: 15px;
        border-radius: 8px;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        transition: opacity 0.3s ease-in-out;
    }

    /* Custom Dropdown Styles */
    .custom-dropdown {
        border: 1px solid #000;
        position: relative;
        width: 160px; /* Fixed width for desktop consistency */
        z-index: 10; /* Ensure it stays above table/cards */
    }
    .dropdown-toggle {
        padding: 8px 12px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        background-color: var(--card-bg);
        cursor: pointer;
        font-size: 1em;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 500;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    .dropdown-toggle:hover {
        border-color: #aaa;
    }
    .custom-dropdown.open .dropdown-toggle {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }
    .toggle-icon-arrow {
        font-size: 1.2em;
        transition: transform 0.2s;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%; /* Always position below the toggle */
        left: 0;
        right: 0;
        margin-top: 4px;
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-height: 200px; /* Limit height for scrollability */
        overflow-y: auto;
    }
    .dropdown-menu.hidden {
        display: none;
    }
    .dropdown-option {
        padding: 10px 12px;
        cursor: pointer;
        font-size: 0.95em;
        transition: background-color 0.15s;
    }
    .dropdown-option:hover {
        background-color: var(--light-bg);
        color: var(--primary-color);
    }
    .dropdown-option.selected {
        background-color: var(--primary-color);
        color: white;
        font-weight: 600;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .task-table {
            display: none; /* Hide table on small screens */
        }
        .task-card-list {
            display: block; /* Show card list on small screens */
        }
        .header-action-bar {
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }
        .custom-dropdown {
            width: 100%;
        }
        .action-left {
            order: 2; /* Move export button below filter */
            width: 100%;
            justify-content: center;
        }
        .action-right {
            order: 1;
            width: 100%;
            justify-content: center;
        }
        .dashboard-select {
            width: auto;
            flex-grow: 1;
        }
    }

/* user profile card */

.user-profile-card {
    width: 100%;
    background: white;
    padding: 45px;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
}

.user-profile-card .custom-select {
    width: 100%;
    background: white;
    border-radius: 9px;
    border: 1.8px solid #ccc;
}

.fullProfileForm {
        padding: 5px !important;
        width: 100%;
    }

/* NEW CSS FOR VIEW MODE STYLING */
    .view-mode-value {
        padding: 10px 15px;
        background-color: #ffffffff; /* Light gray background */
        border: 1px solid #ffffffff;
        border-radius: var(--border-radius);
        margin-bottom: 10px;
        font-weight: bold;
        color: #495057;
    }
    /* Hide the form inputs when in view mode (controlled by JS toggle class) */
    .view-mode .form-input-control {
        display: none;
    }
    /* Show the view mode value when in view mode */
    .view-mode .view-mode-value {
        display: block;
    }
    /* Hide the view mode value when in edit mode */
    .edit-mode .view-mode-value {
        display: none;
    }
    /* Show the form inputs when in edit mode (controlled by JS toggle class) */
    .edit-mode .form-input-control {
        display: block;
    }
    /* Override for form rows that only contain inputs/selects */
    .view-mode input[type="text"], 
    .view-mode input[type="email"], 
    .view-mode .custom-select-wrapper, 
    /* .view-mode .radio-group, */
    .view-mode select {
        display: none;
    }
    .edit-mode input[type="text"], 
    .edit-mode input[type="email"], 
    .edit-mode .custom-select-wrapper, 
    /* .edit-mode .radio-group, */
    .edit-mode select {
        display: block;
    }

    /* Container for dropdown positioning */
.profile-dropdown-container {
    position: relative;
    display: inline-block;
}

/* Style for the dropdown menu */
.profile-dropdown-menu {
    position: absolute;
    top: 100%; /* Position below the button */
    right: 0;
    min-width: 180px;
    background-color: #fff; /* Match your app's background */
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 8px 0;
}

/* Show the dropdown */
.profile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Style for individual items */
.profile-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s;
}

.profile-dropdown-menu .dropdown-item:hover {
    background-color: #f5f5f5; /* Light hover effect */
}

.profile-dropdown-menu .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
}

/* Highlight logout for clarity */
.profile-dropdown-menu .dropdown-item.logout {
    color: #e74c3c;
    border-top: 1px solid #eee;
    margin-top: 5px;
    padding-top: 10px;
}

/* earning page */

.chart-progress-wrapper {
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
    margin-top: 30px;
}

.chart-container,
.progress-container {
    margin-top: 0; 
}

@media (min-width: 768px) {
    .chart-progress-wrapper {
        flex-direction: row; 
        /* VERTICAL CENTERING of progress container */
        align-items: center; 
    }
    
    .chart-container,
    .progress-container {
        flex: 1; 
    }
}


/* --- Chart Container Styling --- */
.chart-container {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    border: none;
    margin: 1.5rem;
}

.chart-container h3 {
    font-size: 1.2rem;
    color: var(--text-color-dark);
    margin-bottom: 15px;
}

#earningChart {
    max-height: 350px; 
    width: 100% !important; 
}


/* --- Task Progress Styling --- */
.progress-container {
    background: none;
    border-radius: 8px;
    padding: 20px;
    margin: 1.5rem;
}

.progress-container h3 {
    font-size: 1.2rem;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.progress-bar-wrapper {
    background-color: var(--border-color, #e0e0e0); 
    border-radius: 10px;
    height: 25px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color, #007bff); 
    transition: width 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    padding-right: 10px;
}

.progress-bar[style*="width: 100%"] {
    background-color: #28a745; /* Green */
}

.progress-bar .progress-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap; 
}

.progress-status {
    font-size: 0.9rem;
    color: var(--text-color-medium);
}

/* -------------------------------------- */
/* --- Filter Container Styling (Layout Only) --- */
/* -------------------------------------- */
.filter-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.filter-container h3 {
    font-size: 1.2rem;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    text-align: center;
}

.filter-controls-wrapper {
    /* Mobile: Month and Year side-by-side */
    display: flex; /* Enables Flexbox */
    gap: 15px;      /* Space between the start date, end date, and button */
    align-items: flex-end; /* Aligns items to the bottom (makes button align with input fields) */
    flex-wrap: wrap; /* Allows wrapping if the screen is too narrow */
}

.filter-group {
    /* Mobile: Month and Year take equal space */
    flex: 1; 
}

.filter-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-color-dark);
}

/* New wrapper for the button row (always below filters) */
.filter-button-row {
    display: flex;
    justify-content: flex-end; /* Align the button to the right */
}


.filter-group.filter-button-group {
    display: flex;
    align-items: flex-end;
}

.filter-group .filter-btn {
    width: 100%;
    height: 40px; 
}

.filter-group.date-range-group {
    /* Ensures date inputs don't shrink too much, but allow them to take available space */
    min-width: 150px; 
    flex-grow: 1; 
}

.filter-button-row {
    margin-top: 0; /* Override any unnecessary margin */
    flex-shrink: 0; /* Prevents the button from shrinking */
}


@media (min-width: 600px) {
    .filter-controls-wrapper {
        flex-direction: row; 
        align-items: flex-start;
    }
    
    .filter-group {
        flex: 1;
    }
    
    .filter-button-row {
        justify-content: center; 
    }
    
    .filter-group.filter-button-group {
        max-width: 200px; /* Constrain the button width on desktop */
        padding-top: 0; 
    }
}

/* -------------------------------------------
   A. Top Summary Grid (Desktop: 2 Columns)
------------------------------------------- */
.earnings-summary-grid {
    display: flex;
    gap: 20px; /* Space between the Total Earnings card and the Filter card */
    margin-bottom: 20px;
    padding: 1.5rem;
}

.earnings-summary-grid .filter-group {
    padding: 0px 5px;
    background: none;
    border: none;
}

.earnings-summary-grid .filter-group label {
    font-size: 12px;
}

.earnings-summary-grid .card-content {
    flex: 1 1 50%; /* Both cards take roughly half the width */
    padding: 20px;
    box-sizing: border-box;
}

/* -------------------------------------------
   B. New Filter Structure (Desktop Inline)
------------------------------------------- */
.filter-card {
    padding: 0 !important; /* Remove internal padding to allow full-height flex layout */
    overflow: hidden; /* Contains the colored block */
}

.date-filter-flex-wrapper {
    display: flex;
    gap: 0;
    height: 100%; 
}

/* Left side: The Yellow Block */
.filter-title-block {
    flex: 0 0 20%; /* Takes 40% of the width on desktop */
    background: none; 
    color: var(--dark-text-color); 
    padding: 10px 0px;
    display: flex;
    align-items: center; /* Vertically center the text */
    justify-content: center;
}

.filter-title-block h3 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0;
}

/* Right side: The Inputs Column */
.filter-inputs-column {
    flex: 1 1 60%; /* Takes the remaining 60% of the width */
    display: flex;
    justify-content: space-around; /* Distribute space evenly */
    margin-left: -10px;
}

/* Standard date input styling (you may need to match your custom CSS) */
.date-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

/* -------------------------------------------
   C. Mobile Stacked Layout (Max 768px)
------------------------------------------- */
@media (max-width: 768px) {
    /* Top Summary Grid Stack */
    .earnings-summary-grid {
        flex-direction: column;
    }
    
    /* Reset padding on mobile for the filter card */
    .filter-card {
        padding: 0;
    }

    /* Filter Stack */
    .date-filter-flex-wrapper {
        flex-direction: column; /* Stack the Title Block and Inputs Block vertically */
        min-height: auto;
    }

    .filter-title-block {
        flex: none; /* Reset flex sizing */
        padding: 15px 20px;
        text-align: left;
    }

    .filter-inputs-column {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .filter-group, .filter-button-row {
        width: 100%;
    }
}

/* ———————————————————— RESPONSIVE MOBILE (≤768px) ———————————————————— */
@media (max-width: 768px) {
  .support-container { padding: 30px 15px; }
  .support-card { padding: 40px 0px; }
  .support-card h1 { font-size: 2.2rem; margin-bottom: 30px; }
  .support-card .form-row { margin-bottom: 25px; }
  .support-card textarea { min-height: 120px; }
  .support-card .done-btn { width: 100%; padding: 18px; }
}

/* Show the table wrapper on desktop (>= 769px) */
@media (min-width: 769px) {
    .task-table-wrapper { display: block; }
}

/* Hide the card list on desktop (>= 769px) */
@media (min-width: 769px) {
    .task-card-list { display: none; }
}

@media (min-width: 769px) {
    .task-card-list {
        display: none; /* HIDE the cards on desktop */
    }
}

/* ========================================================= */
/* --- FINAL CONSOLIDATED MOBILE STYLES (max-width: 768px) --- */
/* ========================================================= */
@media (max-width: 768px) {
    
    /* --- GENERAL LAYOUT & PADDING --- */
    
    /* Adjust padding on core content wrappers */
    .card-container, .task-table-container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }

    .card-container {
        padding-top: 0px;
    }


    /* --- HEADER VISIBILITY SWAP (CRITICAL) --- */

    .mobile-fixed-header .logo {
        display: block !important;
        order: 1; /* Force it to be the first element */
        font-size: 1rem;
        font-weight: 700;
        color: #ffffff; /* Highlight logo color */
        margin-right: auto; /* Push remaining content away */
        padding: 0;
    }
    
    .mobile-fixed-header .logo span {
        padding: 10px 0px;
        text-decoration: none;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    
    #mobileMenuToggle {
        order: 3;
        display: block !important;
    }

    #mobileMenuToggle i {
        /* CRITICAL for smoothness */
        transition: transform 0.3s ease-in-out; 
        transform: rotate(0deg); /* Initial state */
    }
    
    /* NEW: Rotate icon when menu is open */
    body.menu-open #mobileMenuToggle i {
        transform: rotate(90deg);
    }

    .menu-toggle-btn {
        font-size: 28px;
        color: #FFC107;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0px 8px;
        border-radius: 50%;
        transition: all 0.3s;
        width: 40px;
    }
        
    /* 1. Show the fixed mobile bar (RED AREA) */
    .mobile-fixed-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px; 
        background-color: #000000;
        z-index: 1000; 
        color: #fff; 
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
    }


    /* 2. Show the desktop header content but make it stack vertically */
    .header-wrapper {
        /* Override the global 'display: flex' for desktop, to ensure the elements stack nicely on mobile */
        display: block !important;
        
        /* Ensure the padding-left and padding-right are added for mobile spacing */
        padding-left: 15px; 
        padding-right: 15px;
        padding-top: 15px !important; /* Remove any previous top padding */
        padding-bottom: 20px; /* Add space below the header content */
        width: 100%;
        margin-bottom: 0;
    }

    /* 3. Push main content down to clear the fixed bar */
    main {
        padding-top: 60px !important; /* Must match fixed header height */
        padding-left: 0 !important; 
        width: 100%;
    }
    
    /* Push main content up to avoid being hidden by bottom bar */
    .main-content {
        padding-bottom: 0px; /* Height of mobile-nav-bar + margin */
        overflow-y: auto;
        flex-grow: 1;
    }


    .page-user-greeting {
        margin-top: 12px;
        font-size: 1.3rem;
        color: #000000;
        text-align: left;
    }

    .page-user-greeting span {
        color: #666;
        font-weight: 400;
    }

    .page-user-greeting strong {
        color: #000000;
        font-weight: 600;
        font-size: 1.3rem;
        margin: 0 8px;
        letter-spacing: 1px;
    }

    .header-title h2 {
        font-size: 1rem;
        font-weight: 500;
    }

    .desktop-utility-info {
        display: none !important;
    }

    /* --- SIDEBAR OVERLAY (SLIDE-IN FROM LEFT) --- */
    .sidebar {
        position: fixed; 
        top: -900px;
        width: 100%; /* Expanded width on mobile (Use width set in Section 3) */
        height: 100%; 
        z-index: 1000; 
        transition: all 0.3s ease; 
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5); 
        
        /* Apply overlay effect */
        background: rgba(0, 0, 0, 0.8) !important; /* Use RGBA for transparency */
        backdrop-filter: blur(10px) !important; /* Apply the blur effect */
        -webkit-backdrop-filter: blur(30px) !important; /* Safari compatibility */

        /* Ensure internal content is visible */
        display: flex; /* Keep flex-direction: column from desktop */
        flex-direction: column;
    }

    /* State when the sidebar is open (triggered by JS adding 'menu-open' to <body>) */
    body.menu-open .sidebar {
        top: 0; 
        transition: all 0.3s ease-in;
    }

    /* * IMPORTANT: The !important rule is necessary here 
     * to override the inline style="display:none;" set in the PHP file.
     * This makes the element visible only on mobile screens.
     */
    .nav-mobile-utility {
        display: block !important;
        padding: 20px 10px; /* Example padding to make it look good */
        border-bottom: 1px solid #333; /* Separator for clarity */
    }

    .nav-mobile-utility .mobile-profile {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        color: #fff; /* Assuming your sidebar background is dark */
    }

    .nav-mobile-utility .user-avatar-mobile {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .nav-mobile-utility ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-mobile-utility a {
        color: #fff; /* Link color */
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
    }

    /* Hide the main navigation links inside the sidebar on mobile */
    .sidebar .nav-main-links { display: none !important; }
    /* Reverted: If you want to use the main links, you must hide the logo/collapsed menu elements */
    


    .sidebar .logo { display: none; }
    .sidebar ul { margin-top: 20px; }
    .sidebar ul li a { display: flex; align-items: center; padding: 15px 25px; color: #fff !important; }


    /* Disable Hover Effects on mobile/touch screens */
    .sidebar ul li a:hover {
        /* Revert to default mobile sidebar link styles */
        color: #fff !important; 
        background: transparent !important; 
        border-radius: 0 !important; 
    }
    
    /* Fix Active State for Mobile */
    .sidebar ul li.active a {
        /* Keep highlight, but remove desktop rounded corners */
        color: #000000 !important; /* Dark text for contrast on yellow background */
        background: none !important; /* Keep yellow active background */
        border-radius: 0 !important; /* Remove rounded corners for full-width mobile menu */
    }

    .sidebar ul li.active a i {
        color: #000000 !important; /* Ensure icon color matches text */
    }

    .sidebar ul li i { color: #fff !important; }

    .sidebar-mobile-utility-menu {
        display: block !important;
        /* Add some padding/margin if necessary to fit the sidebar */
        padding-top: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu {
        width: 100% !important;
        height: 100%;
        flex-grow: 1; 
        overflow-y: auto;
        margin-top: 50px;
    }

    .menu a span.nav-item {
        overflow: visible;
        opacity: 1 !important;
    }
    
    .sidebar .footer-mobile {
        display: block !important; /* ADDED !important to ensure visibility */
        width: 100%;
        text-align: center;
        padding: 10px 0;
        background: none; 
        color: #aaa;
        font-size: 8px;
        flex-shrink: 0; 
    }
    
    /* Hide desktop footer */
    .footerMain {
        display: none;
    }
    
    /* Hide desktop user info in main header */
    .user-info {
        display: none;
    }
    
    /* --- MOBILE BOTTOM NAVIGATION BAR --- */
    .mobile-nav-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px; /* Standard mobile bottom bar height */
        background: #000000; /* Same color as sidebar */
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
        z-index: 999;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav-bar .nav-item-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #FFC107;
        font-size: 10px;
        padding: 5px;
        flex: 1; /* Distribute space evenly */
        opacity: 0.7;
        transition: opacity 0.2s;
    }

    .mobile-nav-bar .nav-item-mobile i {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .mobile-nav-bar .nav-item-mobile.active {
        color: #ffffff; /* Active link highlight */
        opacity: 1;
    }

    .sidebar .bottom-content {
        display: flex !important;
    }

    
    /* --- LOGIN/REGISTER FORM STYLES --- */
    .login1 {
        position: relative;
        display: flex;
        align-items: center;
        overflow-y: hidden;
    }

    .header-login {
        display: none !important;
    }

    .header-login {
        position: absolute;
        width: 100%;
        top: 0;
        display: grid;
        place-content: center;
        margin: 0 auto;
    }

    .container {
        max-width: 400px !important;
        width: 95% !important;
        height: 750px !important;
        margin: 40px auto !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        position: relative !important;
        background: transparent !important;
    }

    /* OVERLAY CONTAINER – FORCE VISIBLE ON TOP */
    .overlay-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 50% !important;
        z-index: 5 !important;
        border-radius: 24px 24px 0 0 !important;
        overflow: visible !important;
        pointer-events: none !important; /* so buttons below still work */
        background-color: #0000004a;

    }

    .overlay-container * {
        pointer-events: auto !important;
    }

    .overlay {
        width: 100% !important;
        height: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 40px 20px !important;
        text-align: center !important;
        color: white !important;
        left: 0;
    }

    .overlay-left {
        width: 50%;
        top: 0px;
        left: 0px;
        margin: 0;
        transform: translateY(0%);
        opacity: 0;
    }

    .overlay-right {
        top: 0;
        right: 0;
        transform: translateY(0%);
    }

    .overlay-right button {
        margin-top: 55px;
        color: #ffffff;
    }

    .overlay-left button {
        margin-top: 55px;
        color: #ffffff;
    }

    .overlay-panel {
        width: 100% !important;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .overlay-panel h1 {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        margin: 10px 0px !important;
        color: #ffffff;
    }
    
    .overlay-panel h2 {
        display: flex;
        font-size: 2rem !important;
        font-weight: 700 !important;
        margin-bottom: 15px !important;
        color: #ffffff;
    }

    .overlay-panel p {
        font-size: 1.1rem !important;
        opacity: 0.95 !important;
        color: #ffffff;
        margin: 10px 0px;
    }

    /* Hide the ghost buttons on mobile */
    .overlay-panel button {
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 700;
    }

    /* Form stays at bottom */
    .form-container {
        position: absolute !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 55% !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 0 0 24px 24px !important;
        padding: 0px 30px !important;
        z-index: 10 !important;
        margin: 0;
    }

    .btnScaled {
    animation: scaleBtn 0.6s;
    }

    @keyframes scaleBtn {
        0% {
            width: 143.67px;
            height: 40px;
        }
        50% {
            width: 143.67px;
            height: 60px;
        }
        100% {
            width: 143.67px;
            height: 40px;
        }
    }

    #overlayBtn {
    /* Make it cover the entire overlay area */
    position: absolute;
    top: 250px;
    left: 125px;
    height: 100%;
    width: 143.67px;
    height: 40px;
    
    /* Make it transparent and hide the default button appearance */
    background: none;
    border: 1px solid #ffffff;
    z-index: 10; /* Ensure it is above the overlay text but below the flip animation */
    cursor: pointer;
    }

    .left-panel-active .overlay-container {
    transform: translateY(100%);
    }

    .left-panel-active .overlay {
    transform: translateY(50%);
    }

    .left-panel-active .overlay-left {
    transform: translateY(-50%);
    animation: show 0.6s;
    opacity: 1;
    }

    .left-panel-active .overlay-right {
    transform: translateY(-55%);
    opacity: 0;
    }

    .left-panel-active .sign-in-container {
    transform: translateY(-60%);
    opacity: 0;
    z-index: 10 !important;
    }

    .left-panel-active .sign-up-container {
    transform: translateY(-83%);
    opacity: 1;
    z-index: 11 !important;
    animation: show 0.6s;
    }

    .sign-in-container {
        z-index: 2;
        justify-self: end;
        right: 0px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(30px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }

    @keyframes show {
    0%, 60% {
        opacity: 0;
        z-index: 1;
    }
    60.1%, 100% {
        opacity: 1;
        z-index: 5;
    }
}
    
    /* Register/Profile form adjustments */
    .register-card { width: 95% !important; padding: 25px 15px !important; }
    .task-details-wrapper { padding: 15px; }
    .form-row.double { flex-direction: column; gap: 0; }
    .form-row.double .col { width: 100%; margin-bottom: 16px; }
    .register-container { padding: 20px 10px; }

    
    /* Table scrolling */
    .task-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .task-table { min-width: 600px; }

    .task-table {
        display: none !important;
    }
    
    /* Adjust font size for better readability on mobile */
    .profile-box h2 {
        font-size: 18px;
    }
    .profile-box span, .form-row label, .form-row input {
        font-size: 14px;
    }

    /* --- DESKTOP TABLE VIEW STYLES (Visible on large screens) --- */
    .task-table-wrapper {
        /* Hidden by default on mobile */
        display: none;
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        padding: 20px;
        overflow-x: auto; /* Allows horizontal scrolling if table is too wide */
    }

    /* Show table wrapper on desktop screens (>= 769px) */
    @media (min-width: 769px) {
        .task-table-wrapper {
            display: block;
        }
    }

    .task-table-wrapper table {
        width: 100%;
        border-collapse: collapse;
        min-width: 600px; /* Ensures a good minimum width for desktop view */
    }

    .task-table-wrapper th, .task-table-wrapper td {
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid #ecf0f1;
    }

    .task-table-wrapper th {
        background-color: #f7f9fa;
        color: #2c3e50;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
    }

    .task-table-wrapper tr:last-child td {
        border-bottom: none;
    }

    .task-table-wrapper tr:hover {
        background-color: #fafbfb;
    }

    .task-table-wrapper .reward-cell {
        font-weight: 700;
        color: #4CAF50;
    }


    /* --- COLLAPSIBLE CARD VIEW STYLES (Mobile/Tablet Only) --- */

    /* Hide card view on desktop screens (>= 769px) */
    @media (min-width: 769px) {
        .task-card-list {
            display: none;
        }
    }

    .task-card-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Hide card view on desktop screens (>= 769px) */
    @media (min-width: 769px) {
        .task-card-list {
            display: none; /* HIDE the cards on desktop */
        }
    }

    

    .task-card {
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        transition: box-shadow 0.3s ease;
    }

    .task-card:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .task-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background-color: #f7f9fa;
        cursor: pointer;
        border-bottom: 1px solid #ecf0f1;
    }

    .task-card-header:hover {
        background-color: #f0f3f5;
    }

    .task-card-header .main-info {
        display: flex;
        flex-direction: column;
    }

    .task-card-header .task-title {
        font-weight: 600;
        color: #2c3e50;
        font-size: 1.1rem;
    }

    .task-card-header .task-reward {
        color: #4CAF50;
        font-weight: 700;
        font-size: 1.2rem;
    }

    .task-card-header .toggle-icon {
        font-size: 1.5rem;
        color: #7f8c8d;
        transition: transform 0.3s ease;
    }

    /* Card Open State */
    .task-card.open .task-card-header .toggle-icon {
        transform: rotate(180deg);
    }

    .task-card-body {
        /* Set initial max-height to 0 and use padding-bottom to control internal spacing */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 0; /* Default collapsed state */
    }

    /* Card Open State */
    .task-card.open .task-card-body {
        /* Use a large enough value to accommodate content */
        max-height: 500px; 
        padding-top: 15px;
        padding-bottom: 15px;
        border-top: 1px solid #ecf0f1;
    }

    .task-card-body .detail-row {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px dashed #ecf0f1;
    }

    .task-card-body .detail-row:last-of-type {
        border-bottom: none;
        margin-top: 10px; /* Add extra space for the action button */
    }

    .task-card-body .detail-label {
        font-weight: 500;
        color: #7f8c8d;
    }

    .task-card-body .detail-value {
        color: #34495e;
        text-align: right;
    }

    .task-card-body .action-row {
        align-items: center;
    }



    /* Status Button Styles (Used in both Table and Card View) */
    .action-btn {
        padding: 5px 10px;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: capitalize; /* Changed from uppercase for better visual */
        transition: background-color 0.2s;
        display: inline-block;
    }

    .action-btn.do-task {
        background-color: #4CAF50 !important;
        color: white;
    }

    .action-btn.do-task:hover {
        background-color: #45a049;
    }

    .action-btn.done {
        background-color: #2ecc71;
        color: white;
    }

    .action-btn.pending {
        background-color: #f39c12;
        color: white;
    }

    /* index */
    
    
    
    /* Register/Profile form adjustments */
    .register-card { width: 95% !important; padding: 25px 15px !important; }
    .task-details-wrapper { padding: 15px; }
    .form-row.double { flex-direction: column; gap: 0; }
    .form-row.double .col { width: 100%; margin-bottom: 16px; }
    .register-container { padding: 20px 10px; }

    /* 9.5 Task Details */
    .task-details-wrapper {
        padding: 15px;
    }
    .task-detail-card {
        padding: 20px;
        border-radius: 10px;
    }
    .task-detail-card .header-info h2 {
        font-size: 1.5rem;
    }
    .reward-tag {
        font-size: 1rem;
        padding: 6px 12px;
    }
    .task-metadata {
        flex-direction: column;
        gap: 10px;
    }
    .detail-section h3 {
        font-size: 1.3rem;
    }

    /* report wrapper */

    .report-wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0px;
    }

    .report-title {
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .report-title h2{
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        white-space: nowrap;
    }

    .table-actions {
        /* Clear the float so the element can take full width */
        float: none; 
        
        /* Take up the full width of the container on mobile */
        width: 100%; 
        
        /* Stack items vertically */
        flex-direction: column; 
        
        /* Align the stacked items to the start (left) */
        align-items: flex-start;
        
        /* Add some space below the group */
        margin-bottom: 15px;
    }

    .table-actionsv2 {
        display: flex;
        align-items: center;
        justify-content: center !important;
    }

    /* Make both the input and button take up the full width (100%) */
    #reportMonthSelector,
    #exportReportsBtn {
        width: 100%; 
        /* Add a small vertical margin between the stacked items */
        margin-bottom: 0px;
    }

    .exportReportsBtnv2 {
        width: 100%;
    }

    .user-profile-card {
    background: white;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    margin: 0;
    }

    .fullProfileForm form {
        padding: 5px !important;
    }
}

