/* ============================================================
   MAIN.CSS — WEB UI STYLES ONLY
   (PDF styles live exclusively in pdf.css)
   ============================================================ */
html, body {
    height: 100%;
}

/* ============================================================
   Background images
   ============================================================ */
body {
  background-image: url('/static/images/background.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed; /* optional: gives a subtle parallax feel */
}   

/* Unique background for login page 
body.login-page {
    min-height: 100vh;
    background-image: url('/static/images/login.png');
    background-size: cover;        /* scales to fill window 
    background-position: center;   /* keeps focal point centered 
    background-repeat: no-repeat;
}
*/

body.login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: none !important;   /* THIS fixes the issue */
}

.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;   /* or contain */
    z-index: -1;
}

/* Tablet responsiveness for login page */
@media (max-width: 1199px) {

    /* Widen the whole login form */
    .login-container {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    /* Inputs should not look tiny */
    .login-container input.form-control {
        width: 100%;
        min-width: 300px;
    }

    /* Keep the two links on one line */
    .login-links {
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
    }

    .login-links a {
        white-space: nowrap;
    }
}
/* ============================================================
   Admin Dashboard — Responsive Table Tweaks to scale properly on ipads
   ============================================================ */

@media (max-width: 992px) {
    .admin-table th,
    .admin-table td {
        white-space: nowrap;      /* prevent ugly wrapping */
        padding: 0.4rem 0.5rem;   /* tighter spacing */
        font-size: 0.85rem;       /* more readable on tablet */
    }

    .admin-table .btn {
        padding: 0.15rem 0.45rem !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 768px) {
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        display: none;            /* hide Address column on small tablets */
    }
}   

/* --- Admin Dashboard Column Widths --- */
.admin-table {
    table-layout: fixed;
    width: 100%;
}

.col-house {
    width: 10%;
}

/* Allow wrapping in the Display Name column */
.col-name {
    width: 55%;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 150px;
}

.col-address {
    width: 20%;
}

.col-view {
    width: 15%;
}

/* Center the admin dashboard table */
.admin-table-wrapper {
    width: 100%;          /* adjust to taste */
    max-width: 1100px;   /* keeps it elegant on large screens */
    margin: 0 auto;      /* ensures centering */
}


/* ============================================================
   1. Compact Table Rows (Admin Dashboard Lists)
   ============================================================ */

.home-list-item,
.home-list-item td,
.home-list-item th {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.9rem;
    line-height: 1.3;
}

.home-list-item .btn {
    padding: 0.1rem 0.4rem !important;
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.home-list-item:hover {
    background-color: #fff3cd;
    color: #000;
    cursor: pointer;
}


/* ============================================================
   2. HOME CARD — WEB VERSION
   These styles affect ONLY the interactive website.
   They do NOT affect PDF output.
   ============================================================ */

/* Card container */
.home-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

/* Header */
.home-card .card-header {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
}


/* ============================================================
   3. HOME CARD — WEB STYLING FOR COMMON CARD CLASSES
   (PDF uses pdf.css instead)
   ============================================================ */

/* Row: icon + label + value */
.home-card .common_card_field {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
}


/* Icon stays left, fixed */
.home-card .icon {
    flex-shrink: 0;
    margin-right: 6px;
    position: relative;
    top: 1px;
}


.home-card .icon svg {
    width: 14px;
    height: 14px;
    fill: #333;
    vertical-align: -2px;
    margin-right: 4px;
}

/* Header icon — slightly bolder and larger */
.home-card-header .icon-header svg {
    stroke-width: 2.2;   /* makes the icon visually bold */
    width: 32px;         /* slightly larger than the 14px default */
    height: 24px;
}

/* Label: fixed-ish width so values line up */
.home-card .common_card_label {
    flex: 0 0 110px;   /* fixed 90px column: no grow, no shrink */
    margin-right: 6px;
    font-size: 0.8rem;

}

/* Value: takes remaining space, wraps inside itself */
.home-card .common_card_value {
    flex: 1;                 /* creates the aligned value column */
    display: block;          /* NOT flex */
    white-space: normal;     /* allow natural wrapping */
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #222;
    /* IMPORTANT: no display:flex, no flex-wrap here */
}
