/* Hello.ae | WHMCS Twenty-One | consolidated CSS-only theme */
:root {
  --hello-green: #39c82a;
  --hello-teal: #12b9a5;
  --hello-cyan: #079edb;
  --hello-blue: #1464e8;
  --hello-ink: #14263e;
  --hello-line: #e2eaf2;
  --hello-gradient: linear-gradient(105deg, #39c82a 0%, #12b9a5 43%, #079edb 72%, #1464e8 100%);
}

/* Forms, tables and navigation */
body { color: var(--hello-ink); }
body .form-control, body select, body textarea { color: #24374d; }
body .form-control::placeholder { color: #8998aa; opacity: 1; }
body .form-control, body .dataTables_wrapper input[type="search"] { border-radius: 9px; }
body .form-control:focus, body .dataTables_wrapper input[type="search"]:focus {
  border-color: var(--hello-cyan); outline: 0; box-shadow: 0 0 0 3px rgba(7,158,219,.16);
}
body .dataTables_wrapper .dataTables_filter input { border: 1px solid #dbe5ee; padding: 8px 12px; background: #fff; }
body table.dataTable tbody td, body .table tbody td { border-bottom-color: #eaf0f5; }
body .pagination .page-link { border-color: #dfe8ef; color: #37617c; }
body .pagination .page-link:hover { background: #eefaf9; border-color: #bce5e1; color: #087f93; }
body .breadcrumb { font-size: .9rem; }

/* WHMCS sidebars across client-facing sections */
body .sidebar .card.card-sidebar,
body .sidebar .card,
body .sidebar .panel,
body .panel-sidebar,
body .primary-sidebar .card,
body .secondary-sidebar .card {
  background: #fff !important;
  border: 1px solid #e1eaf3 !important;
  border-radius: 16px !important;
  box-shadow: 0 5px 18px rgba(18,45,75,.06) !important;
  overflow: hidden;
  margin-bottom: 18px !important;
}
body .sidebar .card.card-sidebar > .card-header,
body .sidebar .card > .card-header,
body .sidebar .panel > .panel-heading,
body .panel-sidebar > .panel-heading {
  background: #fff !important;
  border-bottom: 1px solid #e5edf5 !important;
  color: var(--hello-ink) !important;
  font-weight: 600;
  padding: 14px 18px;
}
body .sidebar .list-group-item,
body .panel-sidebar .list-group-item,
body .primary-sidebar .list-group-item,
body .secondary-sidebar .list-group-item {
  background: #fff;
  color: #344861;
  border-left: 0;
  border-right: 0;
  border-color: #edf2f7;
  padding: 12px 17px;
  transition: background-color .2s, color .2s;
}
body .sidebar .list-group-item:hover,
body .panel-sidebar .list-group-item:hover { background: #f0fbf9 !important; color: #087ab5 !important; }
body .sidebar .list-group-item.active,
body .panel-sidebar .list-group-item.active {
  background: #eaf8f6 !important;
  color: #087ab5 !important;
  font-weight: 600;
  border-left: 3px solid var(--hello-teal);
}
body .sidebar .card-footer,
body .sidebar .panel-footer,
body .panel-sidebar .panel-footer { background: #f9fbfd; border-top: 1px solid #e9eff5; }

/* Hello.ae gradient primary buttons */
body .btn-primary:not(:disabled):not(.disabled),
body .sidebar .card-footer .btn-primary,
body .sidebar .panel-footer .btn-primary,
body .sidebar .card-footer .btn-success,
body .sidebar .panel-footer .btn-success,
body .panel-sidebar .panel-footer .btn-primary {
  background: var(--hello-gradient) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 9px !important;
  font-weight: 600;
  text-shadow: none !important;
  box-shadow: 0 3px 9px rgba(20,130,175,.14);
}
body .sidebar .card-footer .btn-primary *,
body .sidebar .panel-footer .btn-primary *,
body .sidebar .card-footer .btn-success *,
body .sidebar .panel-footer .btn-success *,
body .btn-primary:not(:disabled):not(.disabled) * { color: #fff !important; }
body .btn-primary:not(:disabled):not(.disabled):hover,
body .sidebar .card-footer .btn-primary:hover { filter: brightness(.96); }


/* ==========================================
   HELLO.AE - DASHBOARD STATISTICS CARDS
   ========================================== */

body .primary-content .tiles {
    display: block !important;
    margin-bottom: 30px !important;
}

body .primary-content .tiles > .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
}

body .primary-content .tiles > .row > div {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-bottom: 16px !important;
}

body .primary-content .tiles .tile {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 170px !important;
    padding: 28px 22px !important;

    background: #f8f8f8 !important;
    border: 0 !important;
    border-radius: 28px !important;

    box-shadow: 0 8px 24px rgba(0,0,0,.025) !important;
    text-decoration: none !important;
    overflow: hidden !important;

    transition: transform .2s ease,
                box-shadow .2s ease !important;
}

body .primary-content .tiles .tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.06) !important;
}

body .primary-content .tiles .tile .stat {
    position: relative !important;
    z-index: 2 !important;

    margin: 25px 0 0 !important;
    padding: 0 !important;

    font-size: 48px !important;
    line-height: 1.1 !important;
    font-weight: 400 !important;
    color: #386a9d !important;
    text-align: left !important;
}

body .primary-content .tiles .tile .title {
    position: relative !important;
    z-index: 2 !important;

    margin-top: 6px !important;
    padding: 0 !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    text-transform: uppercase !important;
    color: #536580 !important;
}

body .primary-content .tiles .tile > i {
    position: absolute !important;
    top: 20px !important;
    right: 22px !important;
    left: auto !important;
    bottom: auto !important;

    font-size: 60px !important;
    line-height: 1 !important;
    color: #bfe9c2 !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

body .primary-content .tiles .tile .highlight {
    display: none !important;
}

/* Responsive layout */

@media (max-width: 767px) {
    body .primary-content .tiles .tile {
        min-height: 130px !important;
        padding: 20px 16px !important;
        border-radius: 22px !important;
    }

    body .primary-content .tiles .tile .stat {
        font-size: 38px !important;
    }

    body .primary-content .tiles .tile > i {
        font-size: 42px !important;
        top: 16px !important;
        right: 16px !important;
    }
}


/* Hello.ae - Compact dashboard statistics cards */

body .primary-content .tiles .tile {
    height: 130px !important;
    min-height: 130px !important;
    max-height: 130px !important;
    box-sizing: border-box !important;
    padding: 18px 22px !important;
}

body .primary-content .tiles .tile .stat {
    margin-top: 12px !important;
}

body .primary-content .tiles .tile > i {
    top: 15px !important;
    right: 20px !important;
}



/* ==========================================
   HELLO.AE - DASHBOARD PANEL GRADIENT BORDERS
   ========================================== */

/* Target dashboard panels only */
body .primary-content .client-home-cards .card {
    position: relative !important;
    border-top: 3px solid transparent !important;
    border-image: none !important;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(
            105deg,
            #39c82a 0%,
            #12b9a5 43%,
            #079edb 72%,
            #1464e8 100%
        ) border-box !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

/* Override WHMCS original panel colors */
body .primary-content .client-home-cards .card-accent-gold,
body .primary-content .client-home-cards .card-accent-asphalt,
body .primary-content .client-home-cards .card-accent-blue,
body .primary-content .client-home-cards .card-accent-green,
body .primary-content .client-home-cards .card-accent-midnight {
    border-top-color: transparent !important;
}


/* Hello.ae - Thin gradient borders on dashboard panels */

body .primary-content .client-home-cards .card {
    border: 1px solid transparent !important;
    border-image: none !important;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--hello-gradient) border-box !important;
    border-radius: 10px !important;
}


/* ==========================================
   HELLO.AE - DASHBOARD BUTTON GRADIENTS
   ========================================== */

/* Dashboard panel action buttons */
body .primary-content .client-home-cards .card .btn,
body .primary-content .client-home-cards .card .btn-success {
    background: var(--hello-gradient) !important;
    background-color: #12b9a5 !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: filter 0.2s ease !important;
}

/* Keep icons and text white */
body .primary-content .client-home-cards .card .btn i,
body .primary-content .client-home-cards .card .btn span {
    color: #ffffff !important;
}

/* Hover effect */
body .primary-content .client-home-cards .card .btn:hover {
    filter: brightness(0.95) !important;
    color: #ffffff !important;
}

/* Keyboard focus */
body .primary-content .client-home-cards .card .btn:focus-visible {
    outline: 2px solid var(--hello-blue);
    outline-offset: 2px;
}

/* ==========================================
   HELLO.AE - MOBILE HEADER FIX
   Keep logo, cart and hamburger on one row
   ========================================== */

@media (max-width: 767px) {

    /* Keep header elements on one line */
    #header .navbar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }

    /* Prevent logo from taking full width */
    #header .navbar-brand {
        width: auto !important;
        max-width: 55% !important;
        flex: 0 1 auto !important;
        margin: 0 !important;
        padding: 5px 0 !important;
    }

    /* Reduce logo size on mobile */
    #header .navbar-brand img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        max-height: 55px !important;
        object-fit: contain !important;
    }

    /* Keep mobile menu buttons together */
    #header .navbar-toggle {
        float: none !important;
        flex-shrink: 0 !important;
        margin: 0 4px !important;
    }

}
