/* ==========================================================================
   DNN Xcillion Theme Color Override
   Palette: Slate Teal, Dusty Plum, Terracotta, Ochre Sand, Warm Ivory
   ========================================================================== */

:root {
    --xc-teal: #4A7E88;
    --xc-teal-dark: #35616A;
    --xc-teal-hover: #3B6B74;
    --xc-plum: #3B354C;
    --xc-plum-dark: #2A2536;
    --xc-plum-border: #4F4863;
    --xc-terracotta: #BF4B3B;
    --xc-terracotta-hover: #9E3B2D;
    --xc-ochre: #CFA368;
    --xc-ochre-muted: #DFC39D;
    --xc-sage: #5A8569;
    --xc-ivory: #F5F0E4;
    --xc-ivory-border: #DED5C0;
    --xc-canvas: #FBF9F5;
    --xc-text: #2B2638;
    --xc-text-muted: #625B73;
    --xc-white: #FFFFFF;
}

/* --------------------------------------------------------------------------
   1. Base Canvas & Typography
   -------------------------------------------------------------------------- */
#siteWrapper {
    background-color: var(--xc-canvas);
    color: var(--xc-text);
}

#siteWrapper h1,
#siteWrapper h2,
#siteWrapper h3,
#siteWrapper h4,
#siteWrapper h5,
#siteWrapper h6,
#siteWrapper .Head {
    color: var(--xc-plum);
}

#siteWrapper a {
    color: var(--xc-teal-dark);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

#siteWrapper a:hover,
#siteWrapper a:focus {
    color: var(--xc-terracotta);
    text-decoration: underline;
}

#siteWrapper hr {
    border-top-color: var(--xc-ivory-border);
}

/* --------------------------------------------------------------------------
   2. Top Utility Bar (#topHeader)
   -------------------------------------------------------------------------- */
#topHeader {
    background-color: var(--xc-plum);
    border-bottom: 1px solid var(--xc-plum-border);
    color: var(--xc-ivory);
}

#topHeader a,
#topHeader .loginLinks a,
#topHeader .userProperties a,
#topHeader .language-object a {
    color: var(--xc-ivory);
    text-decoration: none;
}

#topHeader a:hover,
#topHeader .loginLinks a:hover,
#topHeader .userProperties a:hover {
    color: var(--xc-ochre);
}

/* Xcillion top search input & red search toggle override */
#topHeader #search-top,
#topHeader .SearchContainer {
    background-color: var(--xc-plum-dark);
    border-color: var(--xc-plum-border);
}

#topHeader #search-top input[type="text"],
#topHeader .SearchTextBox {
    background-color: var(--xc-plum-dark);
    color: var(--xc-ivory);
    border: 1px solid var(--xc-plum-border);
}

#topHeader #search-action,
#topHeader .SearchButton,
#topHeader .search-toggle-icon {
    background-color: var(--xc-terracotta) !important;
    border-color: var(--xc-terracotta) !important;
    color: var(--xc-white) !important;
}

#topHeader #search-action:hover,
#topHeader .SearchButton:hover,
#topHeader .search-toggle-icon:hover {
    background-color: var(--xc-terracotta-hover) !important;
}

/* --------------------------------------------------------------------------
   3. Main Header & Bootstrap Navbar
   -------------------------------------------------------------------------- */
#siteWrapper header[role="banner"],
#siteHeadouter {
    background-color: var(--xc-teal);
    border-bottom: 3px solid var(--xc-ochre);
}

#siteHeadinner .navbar-default,
#siteWrapper .navbar-default {
    background-color: transparent;
    border: none;
}

/* Top-level navigation links */
#siteWrapper .navbar-default .navbar-nav > li > a,
#dnnMenu .topLevel > li > a {
    color: var(--xc-canvas);
    background-color: transparent;
    border-bottom: 3px solid transparent;
    font-weight: 600;
}

#siteWrapper .navbar-default .navbar-nav > li > a:hover,
#siteWrapper .navbar-default .navbar-nav > li > a:focus,
#dnnMenu .topLevel > li > a:hover {
    color: var(--xc-white);
    background-color: var(--xc-teal-hover);
    border-bottom-color: var(--xc-ochre);
}

/* Active & open menu items replacing Xcillion red */
#siteWrapper .navbar-default .navbar-nav > .active > a,
#siteWrapper .navbar-default .navbar-nav > .active > a:hover,
#siteWrapper .navbar-default .navbar-nav > .active > a:focus,
#siteWrapper .navbar-default .navbar-nav > .open > a,
#siteWrapper .navbar-default .navbar-nav > .open > a:hover,
#dnnMenu .topLevel > li.active > a {
    color: var(--xc-white);
    background-color: var(--xc-teal-dark);
    border-bottom: 3px solid var(--xc-terracotta);
}

/* Dropdown submenus */
#siteWrapper .navbar-nav .dropdown-menu,
#dnnMenu .subLevel {
    background-color: var(--xc-plum);
    border: 1px solid var(--xc-plum-border);
    border-top: 3px solid var(--xc-terracotta);
    box-shadow: 0 6px 16px rgba(42, 37, 54, 0.28);
}

#siteWrapper .navbar-nav .dropdown-menu > li > a,
#dnnMenu .subLevel li a {
    color: var(--xc-ivory);
    border-bottom: 1px solid var(--xc-plum-border);
}

#siteWrapper .navbar-nav .dropdown-menu > li > a:hover,
#siteWrapper .navbar-nav .dropdown-menu > .active > a,
#dnnMenu .subLevel li a:hover,
#dnnMenu .subLevel li.active > a {
    background-color: var(--xc-terracotta);
    color: var(--xc-white);
}

/* Mobile hamburger button */
#siteWrapper .navbar-default .navbar-toggle {
    background-color: var(--xc-terracotta);
    border-color: var(--xc-terracotta);
}

#siteWrapper .navbar-default .navbar-toggle:hover,
#siteWrapper .navbar-default .navbar-toggle:focus {
    background-color: var(--xc-terracotta-hover);
}

#siteWrapper .navbar-default .navbar-toggle .icon-bar {
    background-color: var(--xc-white);
}

/* --------------------------------------------------------------------------
   4. Breadcrumb Bar (Inner.ascx)
   -------------------------------------------------------------------------- */
#breadcrumb,
#siteWrapper .breadcrumbBox {
    background-color: var(--xc-ivory);
    border-bottom: 1px solid var(--xc-ivory-border);
    color: var(--xc-text-muted);
}

#breadcrumb a,
#breadcrumb .SkinObject {
    color: var(--xc-teal-dark);
    font-weight: 600;
}

#breadcrumb a:hover {
    color: var(--xc-terracotta);
}

/* --------------------------------------------------------------------------
   5. Xcillion Module Containers
   -------------------------------------------------------------------------- */
/* Title_h2 container: replaces Xcillion bright red accent underline */
.DNNContainer_Title_h2 .heading_wrapper {
    border-bottom: 1px solid var(--xc-ivory-border);
}

.DNNContainer_Title_h2 h2 .TitleH2 {
    color: var(--xc-plum);
    border-bottom: 3px solid var(--xc-terracotta);
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: -1px;
}

/* Title_h3 container: secondary slate teal accent */
.DNNContainer_Title_h3 .heading_wrapper {
    border-bottom: 1px solid var(--xc-ivory-border);
}

.DNNContainer_Title_h3 h3 .TitleH3 {
    color: var(--xc-teal-dark);
    border-bottom: 2px solid var(--xc-teal);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: -1px;
}

/* Title_h4 container */
.DNNContainer_Title_h4 h4 .TitleH4 {
    color: var(--xc-plum);
    border-left: 4px solid var(--xc-ochre);
    padding-left: 10px;
}

/* Boxed container */
.DNNContainer_Boxed {
    background-color: var(--xc-ivory);
    border: 1px solid var(--xc-ivory-border);
    border-top: 3px solid var(--xc-teal);
    padding: 20px;
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   6. DNN Action Buttons, Bootstrap Buttons & Forms
   -------------------------------------------------------------------------- */
#siteWrapper a.dnnPrimaryAction,
#siteWrapper input.dnnPrimaryAction,
#siteWrapper button.dnnPrimaryAction,
#siteWrapper .btn-primary {
    background: var(--xc-terracotta);
    background-image: none;
    border: 1px solid var(--xc-terracotta);
    color: var(--xc-white) !important;
    text-shadow: none;
    box-shadow: none;
    border-radius: 3px;
    font-weight: 600;
}

#siteWrapper a.dnnPrimaryAction:hover,
#siteWrapper input.dnnPrimaryAction:hover,
#siteWrapper button.dnnPrimaryAction:hover,
#siteWrapper .btn-primary:hover,
#siteWrapper .btn-primary:focus {
    background: var(--xc-terracotta-hover);
    border-color: var(--xc-terracotta-hover);
    color: var(--xc-white) !important;
    text-decoration: none;
}

#siteWrapper a.dnnSecondaryAction,
#siteWrapper input.dnnSecondaryAction,
#siteWrapper button.dnnSecondaryAction {
    background: var(--xc-teal);
    background-image: none;
    border: 1px solid var(--xc-teal);
    color: var(--xc-white) !important;
    text-shadow: none;
    box-shadow: none;
    border-radius: 3px;
    font-weight: 600;
}

#siteWrapper a.dnnSecondaryAction:hover,
#siteWrapper input.dnnSecondaryAction:hover,
#siteWrapper button.dnnSecondaryAction:hover {
    background: var(--xc-teal-dark);
    border-color: var(--xc-teal-dark);
    color: var(--xc-white) !important;
    text-decoration: none;
}

#siteWrapper .btn-default {
    background-color: var(--xc-ivory);
    border-color: var(--xc-ivory-border);
    color: var(--xc-plum);
}

#siteWrapper .btn-default:hover {
    background-color: var(--xc-ochre-muted);
    border-color: var(--xc-ochre);
    color: var(--xc-plum-dark);
}

#siteWrapper .btn-success {
    background-color: var(--xc-sage);
    border-color: var(--xc-sage);
    color: var(--xc-white);
}

/* Form controls */
#siteWrapper .form-control,
#siteWrapper .dnnFormItem input[type="text"],
#siteWrapper .dnnFormItem input[type="password"],
#siteWrapper .dnnFormItem input[type="email"],
#siteWrapper .dnnFormItem textarea,
#siteWrapper .dnnFormItem select {
    background-color: var(--xc-white);
    border: 1px solid var(--xc-ivory-border);
    color: var(--xc-text);
    border-radius: 3px;
}

#siteWrapper .form-control:focus,
#siteWrapper .dnnFormItem input[type="text"]:focus,
#siteWrapper .dnnFormItem input[type="password"]:focus,
#siteWrapper .dnnFormItem input[type="email"]:focus,
#siteWrapper .dnnFormItem textarea:focus,
#siteWrapper .dnnFormItem select:focus {
    border-color: var(--xc-teal);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(74, 126, 136, 0.2);
}

/* DNN system status messages */
#siteWrapper .dnnFormMessage.dnnFormSuccess {
    background-color: rgba(90, 133, 105, 0.14);
    border-color: var(--xc-sage);
    color: var(--xc-text);
}

#siteWrapper .dnnFormMessage.dnnFormWarning {
    background-color: rgba(207, 163, 104, 0.2);
    border-color: var(--xc-ochre);
    color: var(--xc-text);
}

#siteWrapper .dnnFormMessage.dnnFormValidationSummary,
#siteWrapper .dnnFormMessage.dnnFormError {
    background-color: rgba(191, 75, 59, 0.12);
    border-color: var(--xc-terracotta);
    color: var(--xc-terracotta-hover);
}

/* Tables inside content panes */
#siteWrapper .table > thead > tr > th,
#siteWrapper .dnnGridHeader th {
    background-color: var(--xc-ivory);
    border-bottom: 2px solid var(--xc-teal);
    color: var(--xc-plum);
}

#siteWrapper .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(245, 240, 228, 0.55);
}

/* --------------------------------------------------------------------------
   7. Two-Tone Footer (.footer-above & .footer-below)
   -------------------------------------------------------------------------- */
#siteWrapper footer[role="contentinfo"] .footer-above {
    background-color: var(--xc-plum);
    border-top: 4px solid var(--xc-teal);
    color: var(--xc-ivory);
}

#siteWrapper footer[role="contentinfo"] .footer-above h2,
#siteWrapper footer[role="contentinfo"] .footer-above h3,
#siteWrapper footer[role="contentinfo"] .footer-above h4,
#siteWrapper footer[role="contentinfo"] .footer-above .TitleH2,
#siteWrapper footer[role="contentinfo"] .footer-above .TitleH3 {
    color: var(--xc-ivory);
    border-bottom-color: var(--xc-ochre);
}

#siteWrapper footer[role="contentinfo"] .footer-above a {
    color: var(--xc-ochre-muted);
}

#siteWrapper footer[role="contentinfo"] .footer-above a:hover {
    color: var(--xc-terracotta);
}

#siteWrapper footer[role="contentinfo"] .footer-below {
    background-color: var(--xc-plum-dark);
    border-top: 1px solid var(--xc-plum-border);
    color: #BDB6CC;
}

#siteWrapper footer[role="contentinfo"] .footer-below a,
#siteWrapper footer[role="contentinfo"] .terms-priv a {
    color: var(--xc-ivory);
}

#siteWrapper footer[role="contentinfo"] .footer-below a:hover,
#siteWrapper footer[role="contentinfo"] .terms-priv a:hover {
    color: var(--xc-ochre);
}
