/* ==================================================
   General Reset
================================================== */
html, body, div, span, h1, h2, p, a, ul, li, table, tr, td {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================================================
   Body Styling
================================================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ddd;
    color: #333;
    line-height: 1.6;
    padding: 10px;
    text-align: center;
}

/* ==================================================
   Wrapper
================================================== */
#wrapper {
    max-width: 960px;
    margin: 20px auto;
    background: none;
    overflow: hidden;
    border-top: none;
}

/* ==================================================
   Navigation
================================================== */
#tab_navigation {
    position: relative;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    height: auto;
    width: 100%;
}

ul#tab_primary {
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    list-style: none;
    background: none;
    width: 100%;
}

ul#tab_primary li {
    margin: 0;
    padding: 0;
}

ul#tab_primary a {
    display: block;
    text-align: center;
    padding: 10px 20px;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 14px;
    text-decoration: none;
    color: blue;
    background: #e8e9e1;
    border: 1px solid #c0c0c0;
    border-bottom: none;
    margin-right: 10px; /* Spacing between tabs */
    font-weight: normal;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 10px 10px 0 0;
}

ul#tab_primary a.active {
    background: #d0d2c1; /* Active tab background */
    color: #333;
    font-weight: bold;
    text-decoration: none;
    border-top: 1px solid #c0c0c0;
    border-right: 1px solid #c0c0c0;
    border-left: 1px solid #c0c0c0;
    border-radius: 10px 10px 0 0;
}

ul#tab_primary a:hover {
    background: #f1f1ed;
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

ul#tab_secondary {
    position: relative;
    top: 0;
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    left: 0;
    background-color: #d0d2c1;
    width: 100%;
    border-left: 1px solid #bbb;
    border-right: 1px solid #bbb;
}

ul#tab_secondary li {
    margin: 0;
    padding: 0;
}

ul#tab_secondary a {
    display: block;
    padding: 5px 10px;
    font-size: 14px;
    text-align: center;
    text-decoration: underline;
    color: blue;
    background-color: #d0d2c1; /* Matches primary tab */
    font-weight: bold;
    letter-spacing: 0.05em;
}

ul#tab_secondary a:hover {
    background: #d0d2c1; /* Hover background matches parent tab */
    color: black;
    text-decoration: none;
}

ul#tab_secondary a.active {
    color: red;
    text-decoration: none;
}

ul#tab_secondary li:last-child a {
    border-right: none; /* Remove last border */
}

/* Branding Section */
#branding {
    position: relative;
    padding: 0;
    margin: 0;
    text-align: left;
    background-color: #e8e9e1;
}

#branding .quick_view {
    display: inline-block;
    vertical-align: bottom;
    padding: 10px 0 0 20px;
    background: none;
    width: 100%;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

#branding .quick_view a {
    color: blue;
    text-decoration: underline;
    font-style: italic;
}

#branding .quick_view a:hover {
    color: red;
}

#branding .admin_logo {
    position: absolute;
    top: -30px;
    right: 10px;
    width: 60px;
    height: 60px;
    height: auto;
    z-index: 1; /* Ensure it appears above the background */
    object-fit: cover;
}

/* Sticky Note Aesthetic */
.stickynote {
    background-color: #fff9d6; /* Pale yellow for a sticky note feel */
    border: 2px dashed #e1c96e; /* Dashed outline for a fun, casual look */
    padding: 15px;
    margin: 20px auto;
    max-width: 90%;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    border-radius: 10px; /* Rounded corners */
    text-align: left;
}

/* Adjusted Styling for Bold Section Headers */
.stickynote p strong {
    font-size: 1.1em; /* Slightly larger than default text */
    font-weight: bold;
    color: #333; /* Dark text for contrast */
    text-decoration: none;
    margin-bottom: 5px;
    display: inline-block;
}

.stickynote p {
    margin: 8px 0;
    line-height: 1.5;
    color: #555;
}

.stickynote img {
    vertical-align: middle;
    margin-right: 8px;
    border: none;
}

/* ==================================================
   Content
================================================== */
#container {
    padding: 0 20px 10px 20px;
    background-color: #e8e9e1;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

#content h1 {
    position: relative;
    text-align: right;
    font-family: Impact, "Arial Black", Arial, Helvetica, sans-serif;
    font-size: 2em;
    font-style: italic;
    font-weight: normal;
    letter-spacing: 0.05em;
    color:#333;
    margin: 0;
    padding: 0;
}

#content img {
    max-width: 100%;
    height: auto;
}

.admin_logo {
    width: 100px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.website_url {
    font-size: 14px;
    margin: 10px 0;
}

.website_url a {
    color: blue;
    text-decoration: underline;
}

.website_url a:hover {
    color: red;
    text-decoration: none;
}

/* ==================================================
   Content Boxes
================================================== */
.content_box {
    margin: 20px 0;
    padding: 0;
    border: 1px solid #C0C0C0;
    background-color: #efefde;
    text-align: left;
}

.content_box h2 {
    padding: 10px;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    background-color: #d6d5b7; /* Restored original header background color */
    border-top: 1px solid #999999; /* Optional: subtle border */
    border-bottom: 1px solid #999999; /* Separates header visually */
    display: flex;
    align-items: center;
}

.content_box h2 img {
    margin-right: 10px;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

/* ==================================================
   Table Styles
================================================== */
.content_box table {
    width: calc(100% - 20px);
    border-collapse: collapse;
    margin: 10px auto;
}

.content_box table td {
    vertical-align: middle;
    padding: 5px;
    text-align: left;
}

/* Dynamic Width Centered Table */
.content_box .dynamic_table {
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.content_box .dynamic_table td {
    padding: 10px;
    text-align: center;
}

/* Alternating Row Colors */
.color1 {
    background-color: #e2e3cb;
    height: 24px;
}

.color2 {
    background-color: #eaebd3;
    height: 24px;
}

/* Icon Cells */
.content_box table td.icon {
    text-align: center;
    width: 28px; /* Fixed width for icon cells */
}

.content_box table td.icon img {
    width: 28px; /* Icon image width */
    height: 28px; /* Icon image height */
    display: block;
    margin: 0 auto;
}

/* Table Links */
.content_box table td a {
    text-align: left;
    color: blue;
    text-decoration: underline;
}

.content_box table td a:hover {
    color: red;
    text-decoration: none;
}

/* ==================================================
   Footer
================================================== */
#footer {
    background: #c0bfa3;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    margin-top: 0;
}

#footer a {
    color: blue;
    text-decoration: none;
    font-style: italic;
}

#footer a:hover {
    color: red;
    text-decoration: underline;
}

/* ==================================================
   Responsive Design
================================================== */
@media (max-width: 600px) {
    #wrapper {
        padding: 10px;
    }

    #tab_navigation ul {
        flex-direction: column;
    }

    .content_box table td {
        padding: 10px;
        text-align: left;
    }

    .content_box table td img {
        margin: 0;
    }
}
