/* ============================================================
   GOVMAIL v2.3.1 — Stylesheet
   Federal Office of Internal Communications
   Design: Village of Undscand Hills Official Government Email System
   ============================================================ */

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F0F0F0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #333333;
    min-width: 640px;
}

a {
    color: #003366;
    text-decoration: underline;
}
a:visited {
    color: #003366;
}
a:hover {
    color: #003366;
    text-decoration: underline;
}

/* ============================================================
   TOP BANNER / HEADER
   bg-[#003366] text-white p-4 border-b-4 border-[#CC9933]
   ============================================================ */
.top-banner {
    background-color: #003366;
    color: #FFFFFF;
    border-bottom: 4px solid #CC9933;
    width: 100%;
}

.banner-left {
    width: 60px;
    padding: 12px 10px 12px 16px;
    vertical-align: middle;
    text-align: center;
}

/* Shield icon substitute */
.banner-seal {
    display: inline-block;
    font-size: 28px;
    color: #FFFFFF;
    line-height: 1;
}

.banner-agency {
    display: none;
}

.banner-center {
    padding: 12px 16px;
    vertical-align: middle;
}

.banner-title {
    font-size: 22px;
    font-weight: bold;
    font-family: "Times New Roman", Times, serif;
    color: #FFFFFF;
    letter-spacing: 0;
    display: block;
}

.banner-subtitle {
    font-size: 12px;
    color: #CCCCCC;
    margin-top: 2px;
    font-family: Arial, sans-serif;
    letter-spacing: 0;
    display: block;
}

.banner-right {
    padding: 12px 16px 12px 10px;
    vertical-align: middle;
    text-align: right;
    width: auto;
}

/* Profile / Logout buttons in header */
.banner-time {
    display: none;
}

.banner-node {
    display: none;
}

/* ============================================================
   USER BAR (logged-in bar under header)
   ============================================================ */
.user-bar {
    background-color: #F0F0F0;
    border-bottom: 1px solid #CCCCCC;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.user-bar td {
    padding: 4px 16px;
    color: #333333;
}

.nav-link-danger {
    display: inline-block;
    background: #004080;
    color: #FFFFFF;
    font-weight: normal;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 3px;
}
.nav-link-danger:hover {
    background: #004d99;
    color: #FFFFFF;
    text-decoration: none;
}

/* ============================================================
   NAVIGATION BAR (folder/page tabs)
   ============================================================ */
.nav-bar {
    background-color: #F0F0F0;
    border-bottom: 1px solid #CCCCCC;
}

.nav-bar-inner {
    padding: 0 8px;
}

.nav-item {
    display: inline-block;
    padding: 6px 12px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: normal;
    color: #333333;
    text-decoration: none;
    border: none;
    border-bottom: none;
}

.nav-item:hover {
    background-color: #E5E5E5;
    color: #003366;
    text-decoration: none;
}

.nav-item:visited {
    color: #333333;
}

.nav-active {
    background-color: #E5E5E5 !important;
    color: #003366 !important;
    font-weight: bold !important;
    border-bottom: 2px solid #003366;
}

.nav-sep {
    color: #CCCCCC;
    padding: 0 4px;
}

.nav-logout {
    color: #333333 !important;
}

/* ============================================================
   PAGE WRAPPER
   max-w-6xl mx-auto p-8
   ============================================================ */
.page-wrapper {
    max-width: 1152px;
    margin: 0 auto;
    padding: 24px 32px;
    min-height: 400px;
}

/* ============================================================
   WIN PANELS  →  bg-white border border-[#CCCCCC]
   No colored title bars. Panels are flat white with grey border.
   ============================================================ */
.win-panel {
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    margin-bottom: 12px;
}

/* Panel title: simple grey toolbar like the reference */
.win-panel-title {
    background-color: #E5E5E5;
    color: #333333;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 10px;
    border-bottom: 1px solid #CCCCCC;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0;
}

.win-panel-title-icon {
    font-size: 11px;
    background: #F0F0F0;
    color: #333333;
    border: 1px solid #999999;
    padding: 0 5px;
    cursor: default;
    font-family: Arial, sans-serif;
}

.win-panel-body {
    padding: 0;
}

/* ============================================================
   TOOLBAR (action buttons row)
   bg-[#E5E5E5] p-2 border-b border-[#CCCCCC] flex gap-2
   ============================================================ */
.email-nav-bar {
    background: #E5E5E5;
    border-bottom: 1px solid #CCCCCC;
    padding: 6px 8px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   bg-[#F0F0F0] border border-[#999999] px-2 py-1 text-sm
   ============================================================ */
.btn {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: normal;
    padding: 3px 10px;
    background: #F0F0F0;
    border: 1px solid #999999;
    color: #333333;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover {
    background: #E5E5E5;
    text-decoration: none;
    color: #333333;
}
.btn:active {
    background: #D8D8D8;
}
.btn:visited {
    color: #333333;
}

.btn-disabled {
    color: #999999 !important;
    cursor: default;
    background: #F0F0F0;
}

/* Primary: bg-[#003366] text-white */
.btn-primary {
    background: #003366;
    color: #FFFFFF !important;
    border-color: #003366;
    font-weight: normal;
}
.btn-primary:hover {
    background: #004080;
    color: #FFFFFF !important;
}

.btn-danger {
    background: #F0F0F0;
    color: #CC0000 !important;
    border-color: #999999;
}
.btn-danger:hover {
    background: #E5E5E5;
}

/* ============================================================
   INBOX TABLE
   thead: bg-[#E5E5E5]  (grey, NOT blue)
   tbody: plain white, border border-[#CCCCCC]
   ============================================================ */
.inbox-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.inbox-table th {
    background-color: #E5E5E5;
    color: #333333;
    padding: 6px 10px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #CCCCCC;
    white-space: nowrap;
    font-family: Arial, sans-serif;
}

.inbox-table th.sortable {
    cursor: default;
}

.inbox-table td {
    padding: 6px 10px;
    border: 1px solid #CCCCCC;
    vertical-align: middle;
    font-family: Arial, sans-serif;
}

.inbox-table tr.unread {
    background-color: #FFFFFF;
    font-weight: bold;
}

.inbox-table tr.read {
    background-color: #FFFFFF;
    color: #666666;
    font-weight: normal;
}

.inbox-table tr:hover td {
    background-color: #F5F5F5 !important;
}

.inbox-table tr.priority-urgent td:first-child {
    border-left: 3px solid #CC0000;
}

.inbox-table tr.priority-classified td:first-child {
    border-left: 3px solid #CC9933;
}

.email-link {
    color: #333333;
    text-decoration: none;
}
.email-link:hover {
    text-decoration: underline;
    color: #003366;
}

.badge-unread {
    display: inline-block;
    background: #003366;
    color: #FFFFFF;
    font-size: 10px;
    padding: 1px 6px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    border-radius: 2px;
    margin-left: 4px;
}

.badge-prio-urgent {
    display: inline-block;
    background: #CC0000;
    color: #FFFFFF;
    font-size: 10px;
    padding: 1px 5px;
    font-family: Arial, sans-serif;
}

.badge-prio-classified {
    display: inline-block;
    background: #E5E5E5;
    color: #333333;
    font-size: 10px;
    padding: 1px 5px;
    font-family: Arial, sans-serif;
    border: 1px solid #CCCCCC;
}

/* ============================================================
   EMAIL READ VIEW
   Header table: bg-[#E5E5E5] label cells, white value cells
   Body: plain border border-[#CCCCCC] whitespace-pre-wrap
   ============================================================ */
.email-header-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 13px;
    background: #FFFFFF;
    margin-bottom: 12px;
}

.email-header-table td {
    padding: 6px 10px;
    border: 1px solid #CCCCCC;
    vertical-align: top;
}

.email-header-label {
    font-weight: normal;
    color: #333333;
    width: 80px;
    white-space: nowrap;
    background: #E5E5E5;
    border-right: 1px solid #CCCCCC;
}

.email-body {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 14px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 200px;
    color: #333333;
}

/* ============================================================
   SYSTEM ERROR BOX
   ============================================================ */
.sys-error {
    background: #FFFBEA;
    border: 1px solid #CCCCCC;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    margin: 10px 0;
}

.sys-error-title {
    background: #E5E5E5;
    color: #333333;
    font-weight: bold;
    padding: 4px 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #CCCCCC;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.sys-error-body {
    padding: 6px;
    line-height: 1.6;
    color: #333333;
    white-space: pre-line;
}

.sys-error-footer {
    border-top: 1px solid #CCCCCC;
    margin-top: 8px;
    padding-top: 4px;
    font-size: 11px;
    color: #666666;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-card {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    background: #E5E5E5;
    color: #333333;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    line-height: 48px;
    border: 1px solid #CCCCCC;
    float: left;
    margin-right: 12px;
    font-family: Arial, sans-serif;
}

.profile-field-label {
    font-weight: normal;
    color: #333333;
    width: 130px;
    background: #E5E5E5;
    padding: 6px 10px;
    border: 1px solid #CCCCCC;
    white-space: nowrap;
}

.profile-field-value {
    padding: 6px 10px;
    border: 1px solid #CCCCCC;
    background: #FFFFFF;
}

/* ============================================================
   QUOTA BAR
   ============================================================ */
.quota-wrapper {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 14px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.quota-bar-outer {
    background: #E5E5E5;
    border: 1px solid #CCCCCC;
    height: 20px;
    width: 100%;
    position: relative;
    margin: 8px 0;
}

.quota-bar-inner {
    height: 100%;
    background: #003366;
    position: relative;
}

.quota-bar-inner.warn {
    background: #CC9933;
}

.quota-bar-inner.danger {
    background: #CC0000;
}

.quota-bar-text {
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    text-align: center;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* ============================================================
   FOOTER
   bg-[#E5E5E5] text-[#333333] p-4 text-xs border-t border-[#999999]
   ============================================================ */
.page-footer {
    background-color: #E5E5E5;
    color: #333333;
    font-family: Arial, sans-serif;
    font-size: 11px;
    border-top: 1px solid #999999;
    margin-top: auto;
    width: 100%;
}

.page-footer td {
    padding: 12px 32px;
    vertical-align: top;
}

.footer-right {
    text-align: right;
    color: #666666;
}

/* ============================================================
   LOGIN PAGE
   min-h-screen bg-[#F0F0F0] content-center
   Panel: bg-white border border-[#CCCCCC] p-8
   ============================================================ */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #F0F0F0;
    padding: 32px;
}

.login-box {
    max-width: 800px;
    width: 100%;
}

/* White card */
.win-panel.login-box-panel {
    padding: 32px;
}

.login-warning {
    background: #FFFFFF;
    border: none;
    color: #666666;
    font-family: Arial, sans-serif;
    font-size: 12px;
    padding: 0 0 16px 0;
    text-align: center;
    line-height: 1.5;
    font-weight: normal;
}

.login-form-body {
    padding: 16px;
    background: #FFFFFF;
    max-width: 480px;
    margin: 0 auto;
}

/* Logo/title area */
.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo h1 {
    font-family: "Times New Roman", Times, serif;
    font-size: 24px;
    color: #003366;
    margin-top: 8px;
}

.login-logo p {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #666666;
    margin-top: 4px;
}

/* Form table like the reference: label cell bg-[#E5E5E5], input cell white */
.login-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #CCCCCC;
    margin-bottom: 16px;
}

.login-table td {
    padding: 8px 10px;
    border: 1px solid #CCCCCC;
}

.login-table td.login-label-cell {
    background: #E5E5E5;
    color: #333333;
    font-family: Arial, sans-serif;
    font-size: 13px;
    width: 110px;
    white-space: nowrap;
}

.login-table td.login-input-cell {
    background: #FFFFFF;
}

.login-label {
    font-family: Arial, sans-serif;
    font-size: 13px;
    display: block;
    color: #333333;
    font-weight: normal;
}

.login-input {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 13px;
    padding: 4px 6px;
    background: #FFFFFF;
    border: 1px solid #999999;
    color: #333333;
}

.login-input:focus {
    outline: none;
    border-color: #003366;
}

.login-error {
    background: #FFF0F0;
    color: #CC0000;
    font-family: Arial, sans-serif;
    font-size: 12px;
    padding: 6px 10px;
    margin-bottom: 12px;
    border: 1px solid #FFAAAA;
}

.login-notice {
    background: #F0F4FF;
    color: #003366;
    font-family: Arial, sans-serif;
    font-size: 12px;
    padding: 6px 10px;
    margin-bottom: 12px;
    border: 1px solid #AABBDD;
}

/* bg-[#003366] text-white px-4 py-2 font-['Arial'] */
.login-btn {
    background: #003366;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: normal;
    padding: 6px 20px;
    border: none;
    cursor: pointer;
}
.login-btn:hover { background: #004080; }
.login-btn:active { background: #002244; }

/* ============================================================
   STATUS TICKER
   ============================================================ */
.status-ticker {
    background: #F0F0F0;
    color: #333333;
    font-family: Arial, sans-serif;
    font-size: 11px;
    padding: 3px 16px;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #CCCCCC;
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
    border: none;
    border-top: 1px solid #CCCCCC;
    margin: 12px 0;
}

/* ============================================================
   FOLDER SIDEBAR
   bg-white border border-[#CCCCCC]
   ============================================================ */
.folder-sidebar {
    width: 200px;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
}

.folder-item {
    display: block;
    padding: 8px 10px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    border-bottom: 1px solid #CCCCCC;
    cursor: pointer;
}

.folder-item:hover {
    background: #F5F5F5;
    text-decoration: none;
    color: #333333;
}

.folder-item.active {
    background: #E5E5E5;
    color: #333333;
}

/* ============================================================
   COMPOSE FORM
   ============================================================ */
.compose-label {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: normal;
    display: block;
    color: #333333;
    background: #E5E5E5;
    padding: 6px 10px;
    border: 1px solid #CCCCCC;
    border-bottom: none;
    white-space: nowrap;
    width: 90px;
}

.compose-input {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 13px;
    padding: 6px 8px;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    color: #333333;
}

.compose-input:focus {
    outline: none;
    border-color: #003366;
}

.compose-textarea {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 13px;
    padding: 8px;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    color: #333333;
    resize: vertical;
    min-height: 250px;
    line-height: 1.5;
}

.compose-textarea:focus {
    outline: none;
    border-color: #003366;
}

/* ============================================================
   SETUP PAGE
   ============================================================ */
.setup-panel {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    margin-bottom: 12px;
}

.setup-label {
    font-weight: normal;
    color: #333333;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-family: Arial, sans-serif;
}

.setup-input {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 13px;
    padding: 5px 7px;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    color: #333333;
    margin-bottom: 10px;
}

.setup-input:focus {
    outline: none;
    border-color: #003366;
}

/* ============================================================
   ADMIN PANEL (terminal aesthetic preserved)
   ============================================================ */
.admin-panel {
    background: #1A1A1A;
    color: #00FF00;
    font-family: "Courier New", monospace;
    font-size: 12px;
    min-height: 100vh;
    padding: 0;
}

.admin-header {
    background: #000000;
    color: #00FF00;
    border-bottom: 2px solid #CC9933;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
}

.admin-body {
    padding: 16px;
}

.admin-section {
    border: 1px solid #004400;
    padding: 12px;
    margin-bottom: 16px;
    background: #0A0A0A;
}

.admin-section h2 {
    color: #CC9933;
    font-size: 13px;
    letter-spacing: 2px;
    border-bottom: 1px solid #CC9933;
    padding-bottom: 4px;
    margin-bottom: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.admin-table th {
    background: #003300;
    color: #00FF00;
    padding: 4px 8px;
    text-align: left;
    border-bottom: 1px solid #004400;
}

.admin-table td {
    padding: 3px 8px;
    border-bottom: 1px solid #002200;
    color: #AAFFAA;
    vertical-align: top;
}

.admin-table tr:hover td {
    background: #001100;
}

.admin-label {
    color: #00CC00;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: 1px;
}

.admin-input {
    background: #001100;
    border: 1px solid #004400;
    color: #00FF00;
    font-family: "Courier New", monospace;
    font-size: 12px;
    padding: 4px 6px;
    width: 100%;
    margin-bottom: 8px;
}

.admin-input:focus {
    outline: 1px solid #00FF00;
    background: #002200;
}

.admin-select {
    background: #001100;
    border: 1px solid #004400;
    color: #00FF00;
    font-family: "Courier New", monospace;
    font-size: 12px;
    padding: 4px 6px;
    width: 100%;
    margin-bottom: 8px;
}

.admin-textarea {
    background: #001100;
    border: 1px solid #004400;
    color: #00FF00;
    font-family: "Courier New", monospace;
    font-size: 12px;
    padding: 4px 6px;
    width: 100%;
    resize: vertical;
    margin-bottom: 8px;
}

.admin-btn {
    background: #004400;
    border: 1px solid #006600;
    color: #00FF00;
    font-family: "Courier New", monospace;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 16px;
    cursor: pointer;
    letter-spacing: 2px;
    margin-right: 8px;
}
.admin-btn:hover { background: #006600; }

.admin-nav {
    background: #001100;
    border-bottom: 1px solid #CC9933;
    padding: 6px 16px;
}

.admin-nav a {
    color: #00CC00;
    text-decoration: none;
    margin-right: 16px;
    font-size: 12px;
}
.admin-nav a:hover {
    color: #CC9933;
}
