/* ============================================
   Base Styles
   ============================================ */

body {
    overflow-y: scroll;
    margin: 0;
    padding: 0;
    background: linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0));
    background-color: #e8ebef;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    color: #444;
    font-size: 16px;
    font-weight: 500;
    -webkit-font-smoothing: auto;
}

body.modal-open {
    position: fixed;
    overflow-y: scroll;
    width: 100%;
}

/* ============================================
   Header Styles
   ============================================ */

#header {
    background: linear-gradient(to bottom, #3353C6, #403fae);
    padding: 0;
    margin: 0;
    border-bottom: solid 1px #888888;
    color: white;
    display: flex;
    flex-direction: column;
}

#brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: url('/static/images/blue-s-40.png') no-repeat left center;
    background-size: 40px 40px;
    padding-left: 50px;
    min-height: 40px;
    margin: 0;
    background-position: 0 center;
    color: white !important;
}

#brand h1 {
    font-size: 1.75rem !important; /* Fixed size, no viewport scaling */
}

/* Navigation Links */
#header .nav {
    margin: 0;
}

#header .nav .nav-link {
    color: white !important;
    background-color: transparent;
    padding: 8px 10px;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

#header .nav .nav-link:hover {
    color: white !important;
    text-decoration: underline;
}

#header .nav .nav-link.active {
    color: white !important;
    text-decoration: underline;
}

/* ============================================
   Content Wrapper - Bootstrap Container Styles
   ============================================ */

#bodywrapper {
    background-color: #FDFDFD;
    border: solid 1px #ccc;
    border-top: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
}

/* ============================================
   Links
   ============================================ */

#header a {
    text-decoration: none;
    color: white;
}

a {
    text-decoration: none;
}

a:hover:not(.btn) {
    text-decoration: underline;
}

/* ============================================
   Forms and Inputs
   ============================================ */

div, input, select, textarea {
    outline: none;
}

.form-control, .form-select {
    border: 1px solid #BBB;
    border-radius: 3px;
}

.form-control:focus, .form-select:focus {
    border-color: #3353C6;
    box-shadow: 0 0 0 0.2rem rgba(51, 83, 198, 0.25);
}

/* ============================================
   Buttons
   ============================================ */

.submit:active {
    background-color: #4444cc;
}

.btn-primary {
    background-color: #3353C6;
    border-color: #3353C6;
}

.btn-primary:hover {
    background-color: #2b2ba6;
    border-color: #2b2ba6;
}

/* btn-group outline-primary: same blue as btn-primary */
.btn-outline-primary {
    color: #3353C6;
    border-color: #3353C6;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #3353C6;
    border-color: #3353C6;
}

.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary {
    color: #fff;
    background-color: #3353C6;
    border-color: #3353C6;
}

.btn-check:checked + .btn-outline-primary:hover,
.btn-check:active + .btn-outline-primary:hover {
    background-color: #2b2ba6;
    border-color: #2b2ba6;
}

/* ============================================
   Status Messages
   ============================================ */

#statusmessagewrapper {
    display: inline-block;
    text-align: center;
    width: 100%;
    margin-top: 2px;
}

#statusmessage {
    background-color: #FFFF64;
    text-align: center;
    display: inline-block;
    padding: 3px 5px;
    margin: 0 auto;
    font-size: 16px;
    border-radius: 5px;
    max-width: 700px;
}

#statusmessageclose {
    float: right;
    margin-left: 5px;
    position: relative;
    bottom: 5px;
    left: 3px;
    cursor: pointer;
    z-index: 10000;
}

.homemessage {
    text-align: center;
    display: block;
    padding: 3px;
    margin-bottom: 20px;
    border-radius: 3px;
    font-size: 18px;
    background-color: green;
    color: white !important;
}

/* ============================================
   Footer
   ============================================ */

#footer .footerlinks a {
    color: inherit;
    text-decoration: none;
}

#footer .footerlinks a:hover {
    text-decoration: underline;
}

/* ============================================
   Subject truncation (lihome list items)
   ============================================ */

.emailsubject.text-truncate {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* lihome list row hover (emails, polls, texts) */
.emaildivlist:hover,
.textdivlist:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    transition: background-color 0.15s ease;
}

/* ============================================
   Tables
   ============================================ */

#sendtable {
    width: 100%;
    font-size: 12px;
}

#sendtable .fc {
    width: 9%;
    padding-right: 4px;
    text-align: right;
}

/* ============================================
   reCAPTCHA
   ============================================ */

.grecaptcha-badge {
    visibility: hidden;
}

/* ============================================
   TinyMCE
   ============================================ */

div.mce-primary {
    background-color: #3353C6;
}
