/* =========================
GLOBAL
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f6f8f7;
    color: #222;
    line-height: 1.6;
}


/* =========================
BANNER
========================= */

.banner {
    background: #e7f1ec;
    padding: 20px;
    border-bottom: 1px solid #cfded7;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-logo {
    height: 70px;
}

.banner-text h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.banner-text p {
    font-size: 14px;
    color: #444;
}

.banner-slogan {
    font-style: italic;
    color: #555;
}


/* =========================
MAIN CONTAINER
========================= */

.notes-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.notes-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
}


/* =========================
BUTTON RESET
========================= */

.main-toggle,
.sub-toggle {
    all: unset;
    display: block;
    width: 100%;
    cursor: pointer;
}


/* =========================
MAIN SECTIONS
========================= */

.main-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.main-toggle {
    font-size: 18px;
    font-weight: bold;
    padding: 10px 0;
    color: #1f4f3c;
}

.main-toggle:hover {
    color: #146647;
}

/* -------------------------------------
Professional style for all main-content
-------------------------------------- */
.main-content {
	display: none;
    padding-top: 10px;
    line-height: 1.7;
    color: #222;
    font-size: 15px;
    border-left: 3px solid #1f4f3c; /* subtle left accent */
    padding-left: 15px;
    margin-bottom: 25px;
}

.main-content h3 {
    color: #1f4f3c;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #c7ddd2; /* subtle underline */
    padding-bottom: 4px;
}

.main-content h4 {
    color: #2f6f55;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 6px;
}

.main-content ul,
.main-content ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.main-content ul li,
.main-content ol li {
    margin-bottom: 6px;
}


/* =========================
SUB SECTIONS
========================= */

.sub-section {
    margin: 15px 0;
    padding-left: 15px;
    border-left: 3px solid #c7ddd2;
}

.sub-section h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.sub-section p {
    margin-bottom: 10px;
}

.sub-section ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.sub-section li {
    margin-bottom: 5px;
}


/* =========================
SUB TOGGLE
========================= */

.sub-toggle {
    font-size: 15px;
    font-weight: 600;
    color: #2f6f55;
    padding: 5px 0;
}

.sub-toggle:hover {
    text-decoration: underline;
}

.sub-content {
    display: none;
    margin-top: 10px;
    padding-left: 15px;
}


/* =========================
LOGOUT
========================= */

.logout-area {
    text-align: center;
    margin: 25px 0;
}

.logout-btn {
    background: #2f6f55;
    color: #ffffff;
    border: none;
    padding: 8px 22px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.logout-btn:hover {
    background: #245a45;
}

/* ===============================
   Login wrapper for vertical centering
================================ */
.login-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical center */
  align-items: center;       /* horizontal center */
  min-height: calc(100vh - 120px); /* adjust for banner height */
  width: 100%;
}

/* ===============================
   LOGIN BOX – FLOATING CARD STYLE
================================ */

.container {
    background: linear-gradient(145deg, #ffffff, #f1f7f4);
    padding: 35px 40px;
    border-radius: 14px;
    width: 100%;
    max-width: 360px;
    text-align: center;

    /* Floating effect */
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);

    transition: all 0.3s ease;
}

/* Slight lift on hover */
.container:hover {
    transform: translateY(-4px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Login title */
.container h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1f4f3c;
}

/* Subtitle */
.container .small {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
}

/* Password input */
.container input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #cfded7;
    font-size: 15px;
    margin-bottom: 18px;
    outline: none;
    background: #ffffff;

    transition: all 0.2s ease;
}

/* Input focus effect */
.container input[type="password"]:focus {
    border-color: #2f6f55;
    box-shadow: 0 0 0 2px rgba(47, 111, 85, 0.15);
}

/* Login button */
.container button {
    width: 100%;
    background: linear-gradient(135deg, #2f6f55, #3f8a6a);
    color: #ffffff;
    border: none;
    padding: 11px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;

    transition: all 0.25s ease;
}

/* Button hover */
.container button:hover {
    background: linear-gradient(135deg, #245a45, #2f6f55);
    transform: translateY(-1px);
}

/* Error message */
#msg {
    margin-top: 12px;
    font-size: 13px;
    color: #b23b3b;
}

/* Subtle background pattern */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(47,111,85,0.05), transparent 40%),
        radial-gradient(circle at bottom right, rgba(47,111,85,0.05), transparent 40%);
    z-index: -1;
}

/* ===============================
   PASSWORD SVG TOGGLE (NO SHIFT)
================================ */

.password-field {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
}

.password-field input {
    padding-right: 52px !important;
}

/* Icon container */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    color: #2f6f55;

    transition: color 0.2s ease, transform 0.15s ease;
}

.toggle-password:hover {
    color: #1f4f3c;
    transform: translateY(-50%) scale(1.1);
}

/* SVG size lock */
.toggle-password svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ===============================
   PULSE SUMMARY TABLE
================================ */

.pulse-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 25px;
    font-size: 14px;
}

.pulse-table th,
.pulse-table td {
    border: 1px solid #cfded7;
    padding: 8px 10px;
    text-align: left;
}

.pulse-table th {
    background: #e7f1ec;
    font-weight: 600;
    color: #1f4f3c;
}

.pulse-table tr:nth-child(even) {
    background: #f8fbfa;
}

.sub-content h4 {
    margin: 20px 0 8px;
    color: #2f6f55;
}

/* ===============================
   PULSE DETAIL CARDS
================================ */

.pulse-detail h3 {
    margin: 25px 0 10px;
    color: #1f4f3c;
    border-left: 4px solid #2f6f55;
    padding-left: 8px;
}

.group-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.pulse-card {
    background: #f8fbfa;
    border: 1px solid #d8e6df;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 12px;
}

.pulse-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: #2f6f55;
}

.pulse-card p {
    font-size: 13px;
    margin-bottom: 4px;
}
