/* ============================================================
   Sweetwater Bend HOA – Main Stylesheet
   Unified layout, theme variables, dark mode support
   ============================================================ */

/* ------------------------------------------------------------
   Light Theme (Default)
   ------------------------------------------------------------ */
:root {
    --page-bg: #d9e6f2;
    --header-text: #003366;
    --control-font-size: 17px;
    --menu-font-size: 17px;

    --menu-bg: #e6eef7;
    --menu-hover-bg: #c9dbef;
    --menu-active-bg: #003366;
    --menu-active-text: #ffffff;

    --frame-border: #003366;
}

/* ------------------------------------------------------------
   Dark Theme Overrides
   ------------------------------------------------------------ */
body.dark-mode {
    --page-bg: #1e1e1e;
    --header-text: #ffffff;

    --menu-bg: #2a2a2a;
    --menu-hover-bg: #3a3a3a;
    --menu-active-bg: #0055aa;
    --menu-active-text: #ffffff;

    --frame-border: #ffffff;
}

/* Optional smooth theme transition */
body {
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ------------------------------------------------------------
   Global Layout
   ------------------------------------------------------------ */
body {
    margin: 0;
    padding: 0;
    background: var(--page-bg);
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: var(--header-text);
}

.main-container {
    width: 100%;
    max-width: 1100px;
    margin: 0px auto;       /* was 30ox auto */
    background: var(--page-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.OutlineText {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    color: var(--header-text);
 color: red;
    margin-bottom: 10px;
}

#Line2 {
    border: 0;
    height: 3px;
    background: var(--header-text);
    margin-bottom: 20px;
}

/* ------------------------------------------------------------
   Navigation Menu
   ------------------------------------------------------------ */
footer {
    text-align: center;
    margin-bottom: 20px;
}

footer a {
    display: inline-block;
    padding: 12px 22px;
    margin: 0 8px;
    background-color: var(--menu-bg);
    color: var(--header-text);
    font-size: var(--menu-font-size);
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

footer a:hover {
    background-color: var(--menu-hover-bg);
    transform: translateY(-2px);
}

footer a.active {
    background-color: var(--menu-active-bg);
    color: var(--menu-active-text);
    transform: translateY(-2px);
}

/* ------------------------------------------------------------
   Content Sections
   ------------------------------------------------------------ */
.content {
    display: none;
    padding: 20px;
    background: var(--page-bg);
    border-radius: 6px;
    min-height: 600px;
}

.content.active {
    display: block;
}

.section-center {
    text-align: center;
}
.content {
    height: calc(100vh - 200px); /* header + footer + margins */
    overflow-y: auto;
    overflow-x: hidden;
}

/* ------------------------------------------------------------
   Shared Form Controls
   ------------------------------------------------------------ */
input:not([type="hidden"]),
select,
textarea,
button {
    font-family: Arial, sans-serif;
    font-size: var(--control-font-size);
}

label {
    font-size: var(--control-font-size);
}

/* ------------------------------------------------------------
   Frames & Tables
   ------------------------------------------------------------ */
.styled-frame {
    border: 2px solid var(--frame-border);
    background: #ffffff;
    border-radius: 6px;
    display: block;
    margin: 20px auto;
}

.home-image-frame {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
}

.tblClass {
    border-collapse: collapse;
    width: 85%;
    margin: 0 auto;
}

.tblClass td {
    border: 1px solid #999;
    padding: 10px 14px;
    background: #f7f9fc;
}

.tblClass .board-members-header-row td {
    background: #003366;
    color: #ffffff;
}

.tblClass .resource-links-header-row td {
    background: #003366;
    color: #ffffff;
}

/* Dark mode table adjustment */
body.dark-mode .tblClass td {
    background: #2a2a2a;
    border-color: #555;
    color: #ffffff;
}

body.dark-mode .tblClass .board-members-header-row td {
    background: #003366;
    color: #ffffff;
}

body.dark-mode .tblClass .resource-links-header-row td {
    background: #003366;
    color: #ffffff;
}

/* ------------------------------------------------------------
   About Section
   ------------------------------------------------------------ */
.about-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
    color: var(--header-text);
    line-height: 1.55;
}

.about-text h3 {
    margin: 18px 0 8px 0;
}

.about-text p {
    margin: 0 0 14px 0;
}
/* ===============================================
   SPA Image Viewer — Sweetwater Bend HOA
   Clean, modern, responsive, no layout shifts
   =============================================== */

.spa-imgviewer-container {
    width: fit-content;
    max-width: 900px;
    margin: 0 auto;
    padding: 8px 8px 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spa-imgviewer-centerbox {
    width: 100%;
    max-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.spa-imgviewer-image {
    display: none;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 6px;
}

.spa-imgviewer-image.active {
    display: block;
}

.spa-imgviewer-caption {
    margin-top: 12px;
    min-height: 22px;
    font-size: 1rem;
    color: #333;
    text-align: center;
}

/* ============================================================
   MEMBER PRINT — STRUCTURAL + VISUAL STYLES
   Matches: member-print-fragment, member-row, member-col, header
   ============================================================ */

.member-print-fragment {
    background: #fff;
    padding: 0.5in;
    box-sizing: border-box;
    width: 100%;
}

/* Sticky buttons (screen only) */
.member-print-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.member-print-buttons button {
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
}

/* Wrapper */
.member-print-wrapper {
    width: 100%;
}

/* Header */
.member-print-header {
    text-align: center;
    margin-bottom: 20px;
}

.member-print-header h2 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: bold;
}

.member-print-header .meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 12pt;
    margin-top: 4px;
}

/* Two-column layout */
.member-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
    margin-bottom: 18px;
}

.member-col p {
    margin: 2px 0;
    font-size: 11pt;
    line-height: 1.3;
}

.member-col.empty {
    visibility: hidden;
}

/* Page break */
.page-break {
    page-break-before: always;
}

/* ============================================================
   PRINT OVERRIDES
   ============================================================ */




