.menu-container {
    display: flex;
    flex-direction: column;
    gap: 34px;
    max-width: 420px;
    margin: 40px auto;
    padding: 0 16px;
}

.menu-btn {
    display: block;
    text-align: center;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-btn.secondary {
    background: #16a34a;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Desktop enhancement */
@media (min-width: 768px) {
    .menu-container {
        flex-direction: row;
        justify-content: space-evenly;
        max-width: 80%;

    }
    .menu-btn {
        padding: 30px;
        width: 20%;
    }
}

/* Top navigation bar */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

.topbar {
    width: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 16px;
    background: #d8881f; /* #E97132 - Color from Banner */
    color: white;

    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

/* Icon buttons */
.icon-btn {
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
}

.icon-btn img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.icon-btnlogo {
    padding: 0;
    border-radius: 8px;
    
}

.icon-btnlogo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

.icon-btnlogo:hover,
.icon-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* ----------------------- REPORTPAGE.HTML ----------------------- */
/* ---------------- TIP BOX ON TOP OF REPORT AND EXPERIENCE FORM ------------------ */
.page-content {
    padding: 16px; /*-- To not touch top bar -- */
}

.form-tip {
    max-width: 400px;
    margin: 0 auto 12px auto;

}

.form-tip ul {
    padding-left: 18px;
    margin: 0;
}

.form-tip li {
    margin-bottom: 6px;
    line-height: 1.4;
}


form {
    max-width: 400px;
    margin: 0 auto;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    form {
        max-width: 700px;
    }
    .form-group {
        margin-bottom: 24px;
    }
    .form-tip {
    max-width: 700px;
    }
    .form-tip li {
    margin-bottom: 6px;
    line-height: 1.8;
    }
        
}

input, select, textarea {
    width: 100%;
    padding: 9px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}



button[type="submit"] {
    background: #2563eb;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

button[type="submit"]:hover {
    background: #1e40af;
}

.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .auth-container {
        max-width: 800px;
        margin: 60px auto;
    };
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background: #1e40af;
}

.signup-link {
    text-align: center;
    margin-top: 16px;
}

.signup-link a {
    color: #2563eb;
    font-weight: 600;
}

.hint {
    font-size: 0.85rem;
    color: #6b7280; /* Gray */
}



/* TOGGLE SWITCH */
/* Toggle container */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 10px; /* space between toggle and text */
    margin-bottom: 16px;
}

/* Hide default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider background */
.slider {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s;
    cursor: pointer;
}

/* The circle */
.slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* When checked */
.switch input:checked + .slider {
    background-color: #2563eb;
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}

/* Optional: round slider */
.slider.round {
    border-radius: 24px;
}

.slider.round::before {
    border-radius: 50%;
}

/* Label styling */
.toggle-label {
    font-size: 0.95rem;
    color: #111827;
}



/*  ADMIN DASHBOARD TOTALS */
.dashboard-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 24px auto;
    padding: 0 16px;
}

.card {
    flex: 1;
    padding: 24px;
    background: #7c8597;
    color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}


.card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.card p {
    font-size: 2rem;
    font-weight: 700;
}

/* Desktop layout */
@media (min-width: 768px) {
    .dashboard-cards {
        max-width: 100%;
        flex-direction: row;
    }
}

.dashboard-cards.weekly {
    margin-top: 16px;
}

.card.small {
    padding: 18px;
    background: #46afbd;
}

.card.small h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.card.small p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 4px 0;
}

/* ---------- Cong Totals ---------- */

.congregation-block {
    margin-top: 32px;
}

.congregation-block h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #1e3a8a;
}

.cong-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.cong-table th,
.cong-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.cong-table th {
    background: #f1f5f9;
    font-weight: 600;
}

@media (max-width: 640px) {
    .cong-table th,
    .cong-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* ------------- MODAL STUFF + EXPERIENCES --------------- */


.experience-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
}

.experience-body {
    font-size: 1rem;
    margin-bottom: 12px;
}

.experience-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: white;
    cursor: pointer;
    text-decoration: none;
}

.btn.secondary {
    background: #9ca3af;
}

.btn.danger {
    background: #dc2626;
}

.btn.disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ------------ DASHBOARD CARD (Pending experience)---- */
.dashboard-card {
    display: flex;
    flex-direction: column;
    background: #2563eb;
    max-width: 600px;
    color: white;
    text-decoration: none;

    gap: 16px;
    margin: 24px auto;
    flex: 1;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    
}

.dashboard-card:hover {
    transform: translateY(-3px);
}

.dashboard-number {
    font-size: 2.5rem;
    font-weight: bold;
}

/*** ----------- CONG EXPERIENCES ------------- */


.dashboard-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.dashboard-card p {
    font-size: 1rem;
    font-weight: 500;
}
/* ------------- REVIEW BUTTON ------------------- */

.btn-mark {
    background-color: #08ac47;  /* bright blue for action */
    color: white;
    transition: background 0.2s ease;
}

.btn-mark:hover {
    background-color: #1d4ed8; /* slightly darker on hover */
}

.btn-disabled {
    background-color: #9ca3af; /* grey for reviewed */
    color: #f3f4f6;
    cursor: not-allowed;
}


/*---------------------- EXPERIENCE TEXT TRUNCATING ----------------------------- */

.experience-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.experience-body {
    max-height: 80px;        /* initial visible height */
    overflow: hidden;
    word-wrap: break-word;
    position: relative;
    transition: max-height 0.3s ease;
}

.experience-card.expanded .experience-body {
    max-height: none;      /* enough to show full content */
}

.experience-toggle {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.toggle-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: #2563eb; /* blue text */
    cursor: pointer;
    font-weight: 600;
}

.toggle-btn:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.toggle-btn:focus {
    outline: none;
}

/******************** MESSAGES ***********************/

.messages {
    right: 20px;
    z-index: 9999;
}

.alert {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}

.alert-success {
    background-color: #e6f4ea;
    color: #1e7e34;
}


/********** --------- CONGREGATION REPORTS ********-----------*/

/* Collapsible week blocks */
.week-block {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #f9fafb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Week toggle button */
.week-toggle {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    text-align: left;
    background: #ffffff;
    color: rgb(7, 6, 6);
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.week-toggle:hover {
    background: #bbbcbe;
}

/* Week reports container */
.week-reports {
    padding: 12px 16px;
    background: #ffffff;
    overflow-x: auto;      /* horizontal scrolling */
    overflow-y: hidden;    /* optional: hide vertical overflow */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on mobile */
}

/* Table styling */
.week-reports table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.week-reports th, .week-reports td {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.week-reports th {
    background: #f3f4f6;
    font-weight: 600;
}

.week-reports td button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.week-reports td button:hover {
    background: #b91c1c;
}

/* Responsive */
@media (max-width: 640px) {
    .week-reports table, .week-reports th, .week-reports td {
        font-size: 0.85rem;
    }
}

.delete-icon {
    color: #dc2626; /* red */
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    line-height: 1;
}
.delete-icon:hover {
    color: #b91c1c; /* darker red on hover */
}

/*--------------- LOGO ------------ */
.main-logo {
    text-align: center;
    margin-bottom: 84px;
}

.main-logo img {

    width: 100%;
    height: auto;
}


/*-------------------- USER DROP DOWN -------------------- */

.avatar-btn {
    all: unset;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
}

.avatar-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.avatar-btn:hover {
    background: rgba(255,255,255,0.15);
}


/* ------------------ LOG OUT MODAL --------------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 320px;
    width: 90%;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.modal-cancel {
    background: #ebe5e6;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.modal-confirm {
    background: #dc2626;
    background-color: transparent;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;

}

/********* --- STUDY FORM CARD */
.study-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.study-card input {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

/*-------------- STUDY COUNTER --------------- */
.studies-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.studies-input {
    width: 60px;
    text-align: center;
    font-size: 1.1rem;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f9fafb;
}

/* Plus / minus buttons */
.studies-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.studies-btn:hover {
    background: #1e40af;
}

.studies-btn:active {
    transform: scale(0.95);
}