/******************************************************************************
 * ClickChest theme for Admidio
 *
 * Loaded after Admidio's own stylesheet (themes/simple/css/admidio.css), which stays in
 * charge of everything not mentioned here. Only the look changes: colours, type, the header
 * and footer, cards, buttons and forms. Nothing here hides or moves a control.
 *
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0 only
 *****************************************************************************/

:root {
    --cc-blue: #0b78b8;          /* text and buttons: dark enough for white text on it */
    --cc-blue-dark: #085d90;
    --cc-sky: #32b9f0;           /* the logo's own blue, for decoration only */
    --cc-ink: #111111;
    --cc-band: #eeede9;
    --cc-line: #dddddd;
    --cc-green: #5cb531;

    --bs-primary: var(--cc-blue);
    --bs-primary-rgb: 11, 120, 184;
    --bs-secondary: #5f6b76;
    --bs-secondary-rgb: 95, 107, 118;
    --bs-tertiary: #f6f6f4;
    --bs-body-color: var(--cc-ink);
    --bs-link-color: var(--cc-blue);
    --bs-link-color-rgb: 11, 120, 184;
    --bs-link-hover-color: var(--cc-blue-dark);
    --bs-focus-ring-color: #bfe3f7;
    --bs-success: #3d8a1c;
    --bs-success-rgb: 61, 138, 28;
    --admidio-menu-bg-color-hover: var(--cc-blue);
}

body.cc-theme {
    font-family: Helvetica, Arial, sans-serif;
    color: var(--cc-ink);
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cc-theme a { color: var(--cc-blue); text-decoration: none; }
.cc-theme a:hover, .cc-theme a:focus { color: var(--cc-blue-dark); }

.cc-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header: the same bar as clickchest.com ---------- */
.cc-head { background: #f8f8f8; border-bottom: 1px solid #cccccc; }
.cc-head .cc-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding-top: 16px; padding-bottom: 16px; }
.cc-admin .cc-head .cc-wrap { max-width: none; }
.cc-logo { display: flex; align-items: center; gap: 9px; font-size: 26px; font-weight: bold; letter-spacing: -0.5px; line-height: 1; }
.cc-theme .cc-logo, .cc-theme .cc-logo:hover { color: var(--cc-ink); }
.cc-logo img { display: block; border-radius: 8px; }
.cc-logo span span { color: var(--cc-blue); }
.cc-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; font-weight: bold; letter-spacing: .04em; text-transform: uppercase; }
.cc-theme .cc-nav a { color: var(--cc-ink); }
.cc-theme .cc-nav a:hover { color: var(--cc-blue); }
.cc-theme .cc-balance { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #eef7fc; color: var(--cc-ink); text-decoration: none; white-space: nowrap; }
.cc-theme .cc-balance:hover, .cc-theme .cc-balance:focus { background: #dcedf8; color: var(--cc-ink); text-decoration: none; }
.cc-theme .cc-balance[hidden] { display: none; }
.cc-unread { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #b3261e; color: #ffffff; font-size: 11px; line-height: 16px; text-align: center; vertical-align: 2px; letter-spacing: 0; }
.cc-unread[hidden] { display: none; }
.cc-balance-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #555555; }
.cc-account { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; }
.cc-theme .cc-button { display: inline-block; background: var(--cc-blue); color: #ffffff; font-weight: bold; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; padding: 8px 16px; }
.cc-theme .cc-button:hover { background: var(--cc-blue-dark); color: #ffffff; }

.cc-me { display: flex; align-items: center; gap: 8px; background: #ffffff; border: 2px solid var(--cc-blue); border-radius: 999px; padding: 6px 14px 6px 12px; font-size: 15px; color: var(--cc-ink); }
.cc-me:hover, .cc-me.show { background: #f1f8fd; }
.cc-me .bi { font-size: 1.15rem; line-height: 1; }
.cc-me-menu { width: 270px; border: 0; border-radius: 12px; padding: 10px 0; box-shadow: 0 8px 30px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .06); }
.cc-theme .cc-me-menu .dropdown-item { padding: 11px 24px; font-size: 16px; color: var(--cc-ink); white-space: normal; }
.cc-theme .cc-me-menu .dropdown-item:hover, .cc-theme .cc-me-menu .dropdown-item:focus { background: #f4f4f4; color: var(--cc-ink); }
.cc-me-menu .dropdown-item small { display: block; font-size: 13px; color: #666666; margin-top: 2px; }

/* ---------- Page ---------- */
.cc-page { flex: 1 0 auto; padding-top: 8px; padding-bottom: 48px; }
.cc-theme > .container-fluid { flex: 1 0 auto; }

/* Admidio narrows its content to 1000px; here the page itself sets the width. */
.cc-theme .admidio-content, .cc-theme .admidio-reduced { max-width: none; padding-left: 0; padding-right: 0; hyphens: manual; -webkit-hyphens: manual; }
.cc-admin .admidio-content { padding-left: 1.25rem; padding-right: 1.25rem; padding-bottom: 3rem; }

/* The header is no longer fixed, so the side menu sticks to the top of the window instead. */
@media (min-width: 768px) {
    .cc-theme .admidio-sidebar { top: 0; height: 100vh; }
}

.cc-theme .admidio-breadcrumb { margin-top: 14px; }
.cc-theme .breadcrumb { background: none; padding: 0; margin: 0; font-size: 13px; }
.cc-admin .admidio-breadcrumb { padding-left: 1.25rem; }
.cc-theme .breadcrumb-item.active { color: #666666; }

.cc-theme .admidio-module-headline { font-size: 34px; font-weight: bold; letter-spacing: -0.5px; line-height: 1.15; margin-top: 18px; margin-bottom: 18px; }
.cc-theme h2 { font-size: 24px; font-weight: bold; margin-top: 1.6rem; margin-bottom: .7rem; }
.cc-theme h3 { font-size: 19px; font-weight: bold; }
.cc-theme .lead { font-size: 19px; font-weight: 300; }

/* ---------- Buttons ---------- */
.cc-theme .btn { border-radius: 2px; font-weight: bold; letter-spacing: .02em; }
.cc-theme .btn-primary { background-color: var(--cc-blue); border-color: var(--cc-blue); color: #ffffff; }
.cc-theme .btn-primary:hover, .cc-theme .btn-primary:focus, .cc-theme .btn-primary:active { background-color: var(--cc-blue-dark); border-color: var(--cc-blue-dark); color: #ffffff; }
.cc-theme .btn-secondary { background-color: #ffffff; border-color: #999999; color: var(--cc-ink); }
.cc-theme .btn-secondary:hover, .cc-theme .btn-secondary:focus, .cc-theme .btn-secondary:active { background-color: #f3f3f3; border-color: #777777; color: var(--cc-ink); }
.cc-theme .btn-outline-secondary { background-color: #ffffff; border-color: #999999; color: var(--cc-ink); }
.cc-theme .btn-outline-secondary:hover, .cc-theme .btn-outline-secondary:focus, .cc-theme .btn-outline-secondary:active { background-color: #f3f3f3; border-color: #777777; color: var(--cc-ink); }
.cc-theme .btn-outline-danger { background-color: #ffffff; border-color: #b3261e; color: #b3261e; }
.cc-theme .btn-outline-danger:hover, .cc-theme .btn-outline-danger:focus, .cc-theme .btn-outline-danger:active { background-color: #b3261e; border-color: #b3261e; color: #ffffff; }
.cc-theme .btn-outline-primary { background-color: #ffffff; border-color: var(--cc-blue); color: var(--cc-blue); }
.cc-theme .btn-outline-primary:hover, .cc-theme .btn-outline-primary:focus, .cc-theme .btn-outline-primary:active { background-color: var(--cc-blue); border-color: var(--cc-blue); color: #ffffff; }
.cc-theme .btn-link, .cc-theme .btn-link:hover { color: var(--cc-blue); font-weight: normal; }
.cc-theme .dropdown-toggle.btn-primary { color: #ffffff; }
.cc-theme .admidio-menu-function-node .nav-link { border-radius: 2px; }
/* These are blue buttons, so their words must not take the blue link colour. */
.cc-theme .admidio-menu-function-node .nav-link,
.cc-theme .admidio-menu-function-node .nav-link:hover,
.cc-theme .admidio-menu-function-node .nav-link:focus { color: #ffffff; }
.cc-theme .admidio-menu-function-node .nav-link:hover { background-color: var(--cc-blue-dark); }

/* ---------- Side menu (administrators only): light, like the header ---------- */
.cc-theme .admidio-sidebar { background-color: #f8f8f8; border-right: 1px solid #cccccc; }
.cc-theme .admidio-menu-header { color: #666666; font-size: 12px; letter-spacing: .06em; padding-top: 1rem; }
.cc-theme .admidio-menu-list a,
.cc-theme .admidio-menu-list a .bi { color: var(--cc-ink); }
.cc-theme .admidio-menu-list a:hover,
.cc-theme .admidio-menu-list a:focus,
.cc-theme .admidio-menu-list a:hover .bi,
.cc-theme .admidio-menu-list a:focus .bi { color: #ffffff; background-color: var(--cc-blue); }
.cc-theme .admidio-menu-list a.active { color: var(--cc-blue); font-weight: bold; }
.cc-theme .admidio-headline-mobile-menu { color: var(--cc-ink); }

/* ---------- Cards: white with a hairline, as on clickchest.com ---------- */
.cc-theme .admidio-card { background-color: #ffffff; border: 1px solid var(--cc-line); border-radius: 3px; }
.cc-theme .admidio-card li { background-color: transparent; }
.cc-theme .admidio-card .card-img-top { border-radius: 2px 2px 0 0; }
.cc-theme .admidio-field-group { border: 1px solid var(--cc-line); border-radius: 3px; }

/* ---------- Forms ---------- */
.cc-theme .form-control, .cc-theme .form-select { border-radius: 2px; border-color: #b9b9b9; }
.cc-theme .form-control:focus, .cc-theme .form-select:focus { border-color: var(--cc-blue); box-shadow: 0 0 0 .2rem rgba(11, 120, 184, .2); }
.cc-theme .form-label { font-weight: bold; }
.cc-theme .form-check-input:checked { background-color: var(--cc-blue); border-color: var(--cc-blue); }
.cc-theme .input-group-text { border-radius: 2px; background: #f3f3f3; border-color: #b9b9b9; }

/* ---------- Tables, tabs, badges, progress ---------- */
.cc-theme .table > thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #555555; border-bottom: 2px solid #333333; }
.cc-theme .nav-tabs { border-bottom: 1px solid #cccccc; }
.cc-theme .nav-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--cc-ink); padding: .8rem 1rem .65rem; }
.cc-theme .nav-tabs .nav-link:hover { border-bottom-color: var(--cc-blue); }
.cc-theme .nav-tabs .nav-link.active { color: var(--cc-blue); border-bottom-color: var(--cc-blue); font-weight: bold; background: none; }
.cc-theme .badge.bg-primary { background-color: var(--cc-blue) !important; }
.cc-theme .badge.bg-success { background-color: #3d8a1c !important; }
.cc-theme .badge.bg-info { background-color: #5f6b76 !important; }
.cc-theme .progress { border-radius: 0; background-color: #eeeeee; }
.cc-theme .progress-bar.bg-success { background-color: var(--cc-green) !important; }
.cc-theme .alert { border-radius: 3px; }
.cc-theme .modal-content { border-radius: 6px; }

/* ---------- Log in ---------- */
.cc-login { max-width: 460px; margin: 10px auto 0; border: 5px solid #eeeeee; border-radius: 8px; }
.cc-login > form, .cc-login > .cc-login-lead, .cc-login > .cc-login-new { padding-left: 28px; padding-right: 28px; }
.cc-login-lead { padding-top: 24px; margin-bottom: 18px; color: #333333; }
.cc-login form { padding-bottom: 22px; }
/* Labels sit above their fields: the card is too narrow for Admidio's side-by-side form rows. */
.cc-login form .row > *,
.cc-login form [class*="col-"],
.cc-login form [class*="offset-"] { flex: 0 0 100%; width: 100%; max-width: 100%; margin-left: 0; }
.cc-login form label { margin-bottom: 4px; }
.cc-login .btn-primary { display: block; width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; text-transform: uppercase; padding: 12px; margin-top: 6px; box-sizing: border-box; }
/* The same card on the start page, where the form comes from Admidio's login plug-in. */
.cc-login > .cc-login-plugin { padding: 0 28px 22px; }
.cc-login-plugin h3 { display: none; }
.cc-login-plugin .icon-link[href*="registration.php"] { display: none; }
.cc-login-new { background: var(--cc-band); border-top: 3px solid #333333; padding-top: 18px; padding-bottom: 20px; border-radius: 0 0 3px 3px; }
#admidio-login .admidio-module-headline { text-align: center; }
#admidio-login .admidio-content-header { display: block; }
#admidio-login .admidio-breadcrumb { display: none; }

/* ---------- Footer ---------- */
.cc-foot { flex-shrink: 0; background: var(--cc-band); border-top: 3px solid #333333; font-size: 13px; color: #666666; }
.cc-foot .cc-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 24px; }
.cc-admin .cc-foot .cc-wrap { max-width: none; }
.cc-foot nav a { border-right: 1px solid #bbbbbb; margin-right: 7px; padding-right: 9px; }
.cc-foot nav a:last-child { border: 0; }
.cc-theme #adm_imprint { margin: 0; padding: 0; text-align: right; font-size: 13px; }

@media (max-width: 560px) {
    .cc-account { margin-left: 0; width: 100%; }
    .cc-theme .admidio-module-headline { font-size: 27px; }
}

@media print {
    .cc-head, .cc-foot, .admidio-breadcrumb, .admidio-sidebar { display: none !important; }
}
