/* FaithRO v5 - modernized FluxCP default layout */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #eef2f5;
    color: #1d2a36;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: #236b9a;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.faithro-page {
    min-height: 100vh;
    background: #f4f6f8;
}

.faithro-header {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #071c2b;
    border-bottom: 2px solid #d5a445;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.faithro-header-link,
.faithro-header-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.faithro-header-link img {
    object-fit: cover;
    object-position: center;
}

.faithro-layout {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 205px);
}

.faithro-sidebar {
    width: 250px;
    flex: 0 0 250px;
    margin: 0;
    padding: 22px 16px 30px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #102a3a 0%, #0a2231 100%);
    border-right: 1px solid rgba(255,255,255,.06);
    color: #fff;
}

.menu-group {
    margin: 0 0 22px;
}

.menu-heading {
    margin: 0 0 8px;
    padding: 0 8px 7px;
    color: #e4b657;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .45px;
    border-bottom: 1px solid rgba(255,255,255,.18);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    margin: 2px 0;
    padding: 4px 10px;
    box-sizing: border-box;
    border-radius: 7px;
    color: #eef5f8;
    font-size: 14px;
    transition: background .15s ease, transform .15s ease;
}

.menu-link:hover,
.menu-link.active {
    background: #234b64;
    color: #fff;
}

.menu-link:hover {
    transform: translateX(2px);
}

.menu-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #a8bac5;
}

.menu-link.active .menu-dot,
.menu-link:hover .menu-dot {
    background: #e4b657;
}

.faithro-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 28px 30px 50px;
    box-sizing: border-box;
    background: #f7f8fa;
}

.faithro-content {
    min-height: 180px;
    margin-top: 12px;
    padding: 28px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d9e0e6;
    border-radius: 13px;
    box-shadow: 0 5px 20px rgba(18, 45, 63, .05);
}

/* Clean up old default-theme table imagery when inherited views use it. */
#content {
    width: 100%;
}

#content h1,
#content h2,
#content h3,
.faithro-content h1,
.faithro-content h2,
.faithro-content h3 {
    color: #132737;
}

.faithro-content h2,
.faithro-content h3 {
    border-bottom: 1px solid #e5e9ec;
    padding-bottom: 9px;
}

input[type=text],
input[type=password],
input[type=email],
input[type=file],
select,
textarea {
    max-width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #cad3da;
    border-radius: 7px;
    background: #fff;
    color: #263746;
    font: inherit;
}

input[type=submit],
button,
.button {
    border: 0;
    border-radius: 7px;
    padding: 9px 14px;
    background: #173d55;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

input[type=submit]:hover,
button:hover,
.button:hover {
    background: #24566f;
}

table {
    border-collapse: collapse;
}

.faithro-content table {
    max-width: 100%;
}

.faithro-content th {
    background: #f0f3f5;
    color: #263746;
}

.faithro-content td,
.faithro-content th {
    padding: 8px;
}

.message,
.notice,
.error {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 8px;
}

.message {
    background: #edf7ed;
    border: 1px solid #cfe6cf;
}

.notice {
    background: #fff8e7;
    border: 1px solid #eed99d;
}

.error {
    background: #fff0f0;
    border: 1px solid #efc4c4;
}

.faithro-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 30px;
    box-sizing: border-box;
    border-top: 1px solid #dbe1e6;
    background: #fff;
    color: #7c8790;
    font-size: 11px;
}

.faithro-footer a {
    font-weight: 700;
}

.faithro-footer-controls {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 0 30px 18px;
    background: #fff;
    color: #7c8790;
    font-size: 11px;
}

.faithro-footer-controls form {
    margin: 0;
}

.faithro-footer-controls select {
    padding: 4px 7px;
    font-size: 11px;
}

/* FluxCP inherited components */
#loginbox,
.loginbox {
    margin-bottom: 14px;
}

#submenu,
.submenu,
#pagemenu,
.pagemenu {
    margin-bottom: 12px;
}

/* Mobile */
@media (max-width: 760px) {
    .faithro-header {
        height: 92px;
    }

    .faithro-layout {
        display: block;
    }

    .faithro-sidebar {
        width: 100%;
        padding: 14px;
    }

    .menu-group {
        margin-bottom: 14px;
    }

    .menu-link {
        display: inline-flex;
        width: auto;
        margin-right: 4px;
    }

    .faithro-main {
        padding: 16px;
    }

    .faithro-content {
        padding: 18px;
        border-radius: 10px;
    }

    .faithro-footer {
        display: block;
        padding: 12px 16px;
    }

    .faithro-footer-right {
        margin-top: 6px;
    }

    .faithro-footer-controls {
        justify-content: flex-start;
        padding: 0 16px 14px;
    }
}


.admin-menu {
    margin-bottom: 24px;
    padding: 10px 8px 8px;
    border: 1px solid rgba(228, 182, 87, .26);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
}

.admin-menu .menu-heading {
    color: #f0c86d;
}

.admin-link .menu-dot {
    background: #e4b657;
}
