/* ==================================================
   DELEHOST WHMCS TWENTY-ONE CUSTOM THEME
   Modern Premium Hosting UI
================================================== */

/* BRAND COLORS

Dark Navy  : #2c5aa0
Primary    : #2c5aa0
Hover Blue : #1e40af
Light Blue : #eff6ff  (derived accent bg)
Secondary  : #4a90e2
Text       : #1f2937
White      : #ffffff

==================================================*/

body{
    background:#f9fafb;
    color:#1f2937;
    font-family:Inter,Arial,sans-serif;
}

/* =========================
   NAVBAR
========================= */

.navbar-main{
    background:#2c5aa0 !important;
    box-shadow:0 4px 20px rgba(44,90,160,.18);
    border:none;
}

.navbar-main .navbar-nav > li > a,
.navbar-main .nav-link{
    color:#ffffff !important;
    font-weight:500;
    transition:.3s;
}

.navbar-main .navbar-nav > li > a:hover,
.navbar-main .nav-link:hover{
    color:#bfdbfe !important;
}

.navbar-main .dropdown-menu{
    border:none;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(44,90,160,.12);
}



/* ==================================================
   DELIHOST WHMCS â€” HEADER / NAVIGATION
   Professional Redesign
================================================== */

/* =========================
   HEADER WRAPPER
========================= */

#header.header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(44, 90, 160, .08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    background: #2c5aa0;
    padding: 9px 0;
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
}

.topbar .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Notification button */

.topbar .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #bfdbfe;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    transition: background .2s, color .2s;
}

.topbar .btn:hover {
    background: rgba(255, 255, 255, .20);
    color: #ffffff;
}

.topbar .btn .fa-flag {
    font-size: 12px;
}

/* Notification dot (unread indicator) */

.topbar .btn::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
}

.topbar .btn.no-alerts::before {
    display: none;
}

/* Right side client info */

.topbar .ml-auto {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================
   ACTIVE CLIENT PILL
========================= */

.active-client {
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .10);
    box-shadow: none;
}

.active-client .input-group-text {
    background: transparent;
    color: #bfdbfe;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, .18);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
}

.btn-active-client {
    background: transparent;
    color: #ffffff;
    border: none;
    border-radius: 0;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s;
}

.btn-active-client:hover {
    background: rgba(255, 255, 255, .15);
    color: #ffffff;
}

.active-client .btn[data-toggle="tooltip"] {
    background: transparent;
    color: #bfdbfe;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, .18);
    border-radius: 0;
    padding: 6px 10px;
    transition: background .2s, color .2s;
}

.active-client .btn[data-toggle="tooltip"]:hover {
    background: rgba(255, 255, 255, .15);
    color: #ffffff;
}

.btn-return-to-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s;
}

.btn-return-to-admin:hover {
    background: #b91c1c;
    color: #ffffff;
}

/* =========================
   MAIN NAVBAR (Logo + Search + Tools)
========================= */

.navbar-light {
    background: #ffffff;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.navbar-light .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* =========================
   LOGO
========================= */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 0;
    padding: 0;
}

.logo-img {
    max-height: 44px;
    width: auto;
}

/* =========================
   SEARCH BAR
========================= */

.search {
    flex: 1;
    max-width: 360px;
    margin-left: 20px;
}

.search .input-group {
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.search .input-group:focus-within {
    border-color: #4a90e2;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, .13);
}

.search .form-control {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 10px 4px 10px 0;
    font-size: 13px;
    color: #1f2937;
    box-shadow: none;
}

.search .form-control::placeholder {
    color: #9ca3af;
}

.search .form-control:focus {
    border: none;
    box-shadow: none;
    background: transparent;
}

.search .btn {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 0 12px;
    border-radius: 0;
    transition: color .2s;
}

.search .btn:hover {
    background: transparent;
    color: #2c5aa0;
    transform: none;
}

/* =========================
   TOOLBAR (Cart + Hamburger)
========================= */

.toolbar {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.toolbar .nav-link {
    padding: 0;
}

.toolbar .btn {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.toolbar .btn:hover {
    background: #2c5aa0;
    border-color: #2c5aa0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Cart badge */

.cart-btn {
    position: relative;
}

#cartItemCount {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    line-height: 1;
}

/* Auth buttons (logged-out state) */

.btn-login-header {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #2c5aa0;
    color: #ffffff;
    border: none;
    border-radius: 11px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.btn-login-header:hover {
    background: #1e40af;
    color: #ffffff;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-register-header {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    color: #2c5aa0;
    border: 1.5px solid #2c5aa0;
    border-radius: 11px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.btn-register-header:hover {
    background: #eff6ff;
    color: #1e40af;
    text-decoration: none;
}

/* =========================
   MAIN MENU (Primary Nav)
========================= */

.main-navbar-wrapper {
    background: #ffffff;
    border-bottom: 1.5px solid #e5e7eb;
}

.main-navbar-wrapper .navbar-nav > li > a,
.main-navbar-wrapper .nav-link {
    color: #374151;
    font-size: 13.5px;
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 2.5px solid transparent;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}

.main-navbar-wrapper .navbar-nav > li > a:hover,
.main-navbar-wrapper .nav-link:hover {
    color: #2c5aa0;
    border-bottom-color: #4a90e2;
    background: transparent;
}

.main-navbar-wrapper .navbar-nav > li.active > a,
.main-navbar-wrapper .nav-link.active {
    color: #2c5aa0;
    border-bottom-color: #2c5aa0;
}

/* Dropdown */

.main-navbar-wrapper .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(44, 90, 160, .12);
    padding: 8px;
    margin-top: 0;
    min-width: 200px;
}

.main-navbar-wrapper .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 9px;
    padding: 9px 12px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, color .15s;
}

.main-navbar-wrapper .dropdown-item:hover,
.main-navbar-wrapper .dropdown-item:focus {
    background: #eff6ff;
    color: #2c5aa0;
}

.main-navbar-wrapper .dropdown-item i,
.main-navbar-wrapper .dropdown-item .fas,
.main-navbar-wrapper .dropdown-item .far,
.main-navbar-wrapper .dropdown-item .fad {
    font-size: 14px;
    color: #9ca3af;
    width: 16px;
    text-align: center;
    transition: color .15s;
}

.main-navbar-wrapper .dropdown-item:hover i,
.main-navbar-wrapper .dropdown-item:hover .fas,
.main-navbar-wrapper .dropdown-item:hover .far,
.main-navbar-wrapper .dropdown-item:hover .fad {
    color: #4a90e2;
}

/* Client Area CTA in nav */

.main-navbar-wrapper .nav-cta .nav-link {
    color: #4a90e2;
    font-weight: 700;
}

.main-navbar-wrapper .nav-cta .nav-link:hover {
    color: #2c5aa0;
    border-bottom-color: #2c5aa0;
}

/* =========================
   NOTIFICATION DROPDOWN
========================= */

.client-alerts {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 320px;
    border-radius: 14px;
    overflow: hidden;
}

.client-alerts li {
    border-bottom: 1px solid #e5e7eb;
}

.client-alerts li:last-child {
    border: none;
}

.client-alerts li.none {
    padding: 16px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

.client-alerts a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    transition: background .15s;
}

.client-alerts a:hover {
    background: #eff6ff;
    text-decoration: none;
}

.client-alerts a .fas,
.client-alerts a .far {
    margin-top: 2px;
    color: #4a90e2;
    font-size: 14px;
    flex-shrink: 0;
}

.client-alerts .message {
    font-size: 13px;
    color: #374151;
    line-height: 1.45;
}

/* =========================
   BREADCRUMB
========================= */

.master-breadcrumb {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 11px 0;
}

.master-breadcrumb .breadcrumb {
    margin: 0;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(44, 90, 160, .05);
    font-size: 13px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.master-breadcrumb .breadcrumb-item a {
    color: #2c5aa0;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
}

.master-breadcrumb .breadcrumb-item a:hover {
    color: #1e40af;
}

.master-breadcrumb .breadcrumb-item.active {
    color: #6b7280;
}

.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: 'â€º';
    color: #d1d5db;
    font-size: 14px;
    padding: 0 4px 0 0;
}

/* =========================
   MAIN BODY
========================= */

#main-body {
    padding: 40px 0;
    background: #f9fafb;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(44, 90, 160, .06);
}

.sidebar .list-group-item {
    border: none;
    border-radius: 9px;
    margin-bottom: 4px;
    color: #374151;
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 14px;
    transition: background .15s, color .15s;
}

.sidebar .list-group-item:hover {
    background: #eff6ff;
    color: #2c5aa0;
}

.sidebar .list-group-item.active {
    background: #2c5aa0;
    color: #ffffff;
}

/* =========================
   PRIMARY CONTENT
========================= */

.primary-content {
    background: transparent;
}

/* =========================
   VERTICAL DIVIDER (toolbar)
========================= */

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    display: inline-block;
    margin: 0 4px;
    vertical-align: middle;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1199px) {
    .main-navbar-wrapper .navbar-nav > li > a,
    .main-navbar-wrapper .nav-link {
        padding: 12px 0;
        border-bottom: none;
        border-left: 3px solid transparent;
        padding-left: 12px;
    }

    .main-navbar-wrapper .navbar-nav > li > a:hover,
    .main-navbar-wrapper .nav-link:hover {
        border-left-color: #4a90e2;
        border-bottom-color: transparent;
    }

    .main-navbar-wrapper .dropdown-menu {
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        background: #f9fafb;
    }
}

@media (max-width: 992px) {
    .search {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .navbar-light .container {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .navbar-light {
        padding: 12px 0;
    }

    .toolbar .btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .topbar {
        font-size: 12px;
        padding: 8px 0;
    }

    .active-client .input-group-text {
        display: none;
    }

    .btn-register-header {
        display: none;
    }

    .master-breadcrumb .breadcrumb {
        font-size: 12px;
    }

    .sidebar {
        border-radius: 14px;
        padding: 14px;
    }
}

/* =========================
   LOGO
========================= */

.logo img,
.navbar-brand img{
    max-height:48px;
    width:auto;
}

/* =========================
   HERO / HOMEPAGE
========================= */

section#main-body{
    background:#f9fafb;
}

.homepage-banner{
    background:linear-gradient(
        135deg,
        #2c5aa0,
        #4a90e2
    ) !important;
    border:none;
    padding:70px 0;
}

.homepage-banner h1,
.homepage-banner h2,
.homepage-banner p{
    color:#ffffff !important;
}

.homepage-banner .btn{
    margin-top:10px;
}

/* =========================
   BUTTONS
========================= */

.btn{
    border-radius:10px;
    font-weight:600;
    transition:.3s;
}

.btn-primary{
    background:#2c5aa0 !important;
    border-color:#2c5aa0 !important;
    color:#fff !important;
}

.btn-primary:hover{
    background:#1e40af !important;
    border-color:#1e40af !important;
    transform:translateY(-2px);
}

.btn-default,
.btn-secondary{
    border-radius:10px;
}

/* =========================
   DOMAIN SEARCH
========================= */

.domain-search-bg,
.domain-checker-bg{
    background:linear-gradient(135deg,#2c5aa0,#4a90e2) !important;
    border-radius:20px;
    overflow:hidden;
    padding:50px 30px;
}

.domain-search-bg h2,
.domain-checker-bg h2{
    color:#fff !important;
}

.domain-search-bg input,
.domain-checker-bg input{
    border-radius:10px;
    border:none;
    padding:14px;
}

/* =========================
   CARDS
========================= */

.card,
.panel,
.product{
    border:1px solid #e5e7eb !important;
    border-radius:18px !important;
    background:#ffffff;
    box-shadow:0 8px 25px rgba(44,90,160,.06);
    transition:.3s;
}

.card:hover,
.panel:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 32px rgba(44,90,160,.12);
}

.card-header,
.panel-heading{
    background:#ffffff !important;
    border-bottom:1px solid #e5e7eb !important;
    border-radius:18px 18px 0 0 !important;
    font-weight:600;
}

/* =========================
   CLIENT AREA SIDEBAR
========================= */

.sidebar{
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#ffffff;
    box-shadow:0 4px 20px rgba(44,90,160,.06);
    padding:10px;
}

.sidebar .list-group-item{
    border:none;
    border-radius:10px;
    margin-bottom:6px;
    color:#1f2937;
}

.sidebar .list-group-item:hover{
    background:#eff6ff;
    color:#2c5aa0;
}

/* =========================
   TABLES
========================= */

.table{
    background:#ffffff;
    border-radius:14px;
    overflow:hidden;
}

.table thead{
    background:linear-gradient(135deg,#2c5aa0,#4a90e2);
}

.table thead th{
    color:#ffffff;
    border:none;
    font-weight:600;
}

.table td{
    border-color:#e5e7eb;
}

/* =========================
   ANNOUNCEMENTS / ALERTS
========================= */

.alert{
    border:none;
    border-radius:12px;
}

.alert-info{
    background:#eff6ff;
    color:#2c5aa0;
}

.alert-success{
    background:#ecfdf5;
    color:#065f46;
}

.alert-warning{
    background:#fffbeb;
    color:#92400e;
}

/* =========================
   LOGIN / REGISTER
========================= */

.logincontainer,
.login-wrapper,
.client-login{
    border:1px solid #e5e7eb;
    border-radius:22px;
    box-shadow:0 10px 35px rgba(44,90,160,.08);
    overflow:hidden;
}

.logincontainer .header{
    background:linear-gradient(135deg,#2c5aa0,#4a90e2);
    color:#fff;
}

/* =========================
   INPUTS
========================= */

.form-control{
    border-radius:10px;
    border:1px solid #e5e7eb;
    padding:12px;
    box-shadow:none;
}

.form-control:focus{
    border-color:#4a90e2;
    box-shadow:0 0 0 3px rgba(74,144,226,.18);
}

/* =========================
   LINKS
========================= */

a{
    color:#2c5aa0;
}

a:hover{
    color:#1e40af;
    text-decoration:none;
}

/* =========================
   HEADINGS
========================= */

h1,h2,h3,h4{
    color:#1f2937;
    font-weight:700;
}

/* =========================
   FOOTER
========================= */

footer.footer{
    background:linear-gradient(135deg, #0a1428 0%, #1a2847 100%) !important;
    color:#bfdbfe !important;
    border:none;
    padding:50px 0;
}

footer.footer a{
    color:#93c5fd !important;
}

footer.footer a:hover{
    color:#ffffff !important;
}

/* =========================
   BREADCRUMB
========================= */

.breadcrumb{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    box-shadow:0 3px 15px rgba(44,90,160,.04);
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .homepage-banner{
        padding:50px 20px;
    }

    .navbar-main{
        padding:10px;
    }

    .card,
    .panel{
        border-radius:14px !important;
    }

}