/* =========================================================
   Hosting Eagle - Client Portal override styles
   Restyles the ClientExec template to match the main site.
   ========================================================= */

:root {
    --primary: #0f62fe;
    --primary-dark: #0a4ac4;
    --primary-light: #e8effe;
    --accent: #00d4aa;
    --dark: #0b1222;
    --dark-2: #111c33;
    --text: #33415c;
    --text-light: #6b7a99;
    --white: #ffffff;
    --border: #e3e9f4;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(11, 18, 32, .08);
    --shadow-lg: 0 20px 50px rgba(11, 18, 32, .14);
}

body {
    font-family: 'Inter', 'Nunito', sans-serif;
    background: #f7f9fd;
    color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Nunito', sans-serif;
    color: var(--dark);
    font-weight: 700;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ---------------- Header ---------------- */
.header {
    background: rgba(11, 18, 32, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.main-meta {
    padding: 12px 0;
    transition: all ease .2s;
}

.main-meta .container {
    min-height: 62px;
}

.main-meta .logo {
    padding-right: 24px;
}

.main-meta .logo h1,
.main-meta .logo h1 span {
    font-family: 'Inter', sans-serif;
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.main-meta .logo h1 span a { color: var(--white); }
.main-meta .logo h1 span a:hover { color: var(--accent); }

/* Main nav links */
.main-menu {
    width: auto;
    flex: 1;
    padding: 0 8px;
}

.main-menu > ul > li { display: inline-block; }

.main-menu > ul > li > a {
    display: inline-block;
    padding: 10px 16px;
    color: rgba(255,255,255,.85);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}

.main-menu > ul > li > a:hover,
.main-menu > ul > li > a.active {
    color: var(--accent);
    background: rgba(255,255,255,.06);
}

.navbar-nav {
    border-left: none !important;
}

/* Dropdown menus */
.navbar-nav .dropdown-menu,
.header-right .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    margin-top: 10px;
}

.navbar-nav .dropdown-menu li a,
.header-right .dropdown-menu li a {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    transition: background .2s ease, color .2s ease;
}

.navbar-nav .dropdown-menu li a:hover,
.header-right .dropdown-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Login / user menu on right */
.header-right {
    width: auto;
}

#login-menu a {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    background: var(--primary);
    color: var(--white);
    transition: all .25s ease;
}

#login-menu a:hover {
    background: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(15, 98, 254, .35);
}

.header-right .current-user .user-toggle { padding: 0 20px 0 0; }
.header-right .current-user .user-toggle:after { color: rgba(255,255,255,.5); }
.header-right .current-user .user-toggle:hover::after,
.header-right .current-user .user-toggle.active::after { color: var(--accent); }

.header-right .current-user .user-toggle .user-tag span { color: rgba(255,255,255,.6); }
.header-right .current-user .user-toggle .user-tag h5 { color: var(--white); font-size: 15px; }

/* ---------------- Buttons ---------------- */
.app-btns {
    line-height: 46px;
    padding: 0 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 10px;
    text-transform: none;
    letter-spacing: .2px;
    transition: all .25s ease;
}

.app-btns.primary {
    background: var(--primary);
}

.app-btns.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(15, 98, 254, .35);
}

.app-btns.secondary {
    background: var(--accent);
    color: var(--dark);
}

.app-btns.secondary:hover {
    background: #00c39b;
    color: var(--dark);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ---------------- Content area ---------------- */
.dashboard-wraper {
    background: #f7f9fd;
}

.client-area-page { padding: 60px 0; }

/* Action boxes - match main site cards */
.client-area-page .client-area-top-block .client-area-top-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    transition: all .3s ease;
}

.client-area-page .client-area-top-block .client-area-top-box:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.client-area-page .client-area-top-block .client-area-top-box p {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
}

.client-area-page .client-area-top-block .client-area-top-box p span {
    font-weight: 700;
    font-size: 17px;
    color: var(--dark);
}

/* Dashboard blocks */
.dashboard-wraper .dashboard-main .dashboard-left-bar {
    background: var(--dark-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dashboard-wraper .dashboard-main .dashboard-left-bar .dashboard-info-box .heading h4 {
    color: var(--white);
    font-weight: 700;
}

.dashboard-wraper .dashboard-main .dashboard-left-bar .dashboard-info-box p,
.dashboard-wraper .dashboard-main .dashboard-left-bar .dashboard-info-box ul li a {
    color: rgba(255,255,255,.7);
}

.dashboard-wraper .dashboard-main .dashboard-left-bar .dashboard-info-box ul li a:hover {
    color: var(--accent);
}

.dashboard-wraper .dashboard-main .dashboard-right-block .dashboard-four-block .dash-commen-boxes {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dashboard-wraper .dashboard-main .dashboard-right-block .dashboard-four-block .dash-commen-boxes p span {
    color: var(--dark);
}

/* Data tables / panels */
.data-table-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.data-table-wrapper .head {
    border-bottom: 1px solid var(--border);
    background: #fafbfe;
}

.data-table-wrapper .head h3 {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    font-weight: 700;
}

.data-table-wrapper table tr th {
    background: #fafbfe;
    color: var(--dark);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.data-table-wrapper table tr td {
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.data-table-wrapper table tr:nth-child(even) td { background: #fbfcff; }

/* ---------------- Forms ---------------- */
.form-elem label,
.data-table-wrapper label {
    color: var(--dark);
    font-weight: 600;
}

.form-elem .form-control,
.data-table-wrapper .form-control {
    border-radius: 10px;
    border-color: var(--border);
}

.form-elem .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 98, 254, .12);
}

.cm-holder {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cm-holder .head h3 {
    color: var(--dark);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* ---------------- Footer ---------------- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    padding: 0;
    margin-top: 0;
    position: relative;
}

.footer p {
    color: rgba(255,255,255,.7);
    font-family: 'Inter', sans-serif;
}

.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--accent); }

.footer .copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
}

.footer .brand-logo {
    max-height: 18px;
    opacity: .85;
}

/* Hosting Eagle footer layout */
.footer .site-footer {
    padding: 80px 0 0;
}

.footer .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer .custom-logo {
    max-width: 100%;
    height: auto;
}

.footer .site-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.footer .site-title a { color: var(--white); }
.footer .site-title a:hover { color: var(--accent); }

.footer .footer-brand p {
    font-size: 14px;
    margin-top: 16px;
    max-width: 320px;
    line-height: 1.7;
}

.footer .footer-widget-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
}

.footer .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer .footer-col ul li { margin-bottom: 10px; }
.footer .footer-col ul a { font-size: 14px; color: rgba(255,255,255,.7); }
.footer .footer-col ul a:hover { color: var(--accent); }

.footer .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer .contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,.7);
}

.footer .contact-line a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}

.footer .contact-line a:hover { color: var(--accent); }

.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer .footer-copyright { color: rgba(255,255,255,.5); }

.footer .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.footer .footer-menu li { margin: 0; }
.footer .footer-menu a {
    display: inline-block;
    padding: 8px 16px;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    transition: color .2s ease, background .2s ease;
}

.footer .footer-menu a:hover {
    color: var(--accent);
    background: rgba(255,255,255,.08);
}

.footer .footer-menu a[href*="/blog"],
.footer .footer-menu a[href*="/clients"] {
    color: var(--accent);
    background: rgba(255,255,255,.08);
}

@media (max-width: 992px) {
    .footer .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .footer .footer-top { grid-template-columns: 1fr; gap: 34px; }
    .footer .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------------- Status badges ---------------- */
.status.green { background: #e6f9f2; color: #0d9e6c; }
.status.orange { background: #fff3e6; color: #d97a1f; }
.status.red { background: #fdeeee; color: #d13b3b; }
.status.blue { background: var(--primary-light); color: var(--primary); }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
    .main-meta .logo h1,
    .main-meta .logo h1 span {
        font-size: 20px;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255,255,255,.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .main-menu > ul > li > a {
        color: rgba(255,255,255,.85);
        font-size: 15px;
    }

    .main-menu > ul > li > a:hover,
    .main-menu > ul > li > a.active {
        color: var(--accent);
        background: rgba(255,255,255,.06);
    }
}