@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Apply custom typography */
body, h1, h2, h3, h4, h5, h6, .navbar, .btn, .card-title, .form-control {
    font-family: 'Poppins', sans-serif !important;
}

body {
    background-color: #f6f6f6 !important;
    color: #495057 !important;
}

/* TOPBAR NEWS - Hostaqui */
.infonews {
    background-color: #0d1117 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 168, 255, 0.1);
}

.infonews a.golink {
    color: #48b5dd !important;
    font-weight: 600;
    transition: color 0.2s ease;
    text-decoration: none;
}

.infonews a.golink:hover {
    color: #00a8ff !important;
}

.infonews .badge.bg-purple {
    background-color: #00a8ff !important;
    color: #ffffff !important;
    padding: 4px 8px;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 4px;
}

.infonews .tabphone {
    color: #ffffff !important;
    font-weight: 500;
    text-decoration: none;
}

/* HEADER & NAVBAR - Hostaqui */
header.header {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border-bottom: none !important;
}

header.header .navbar-brand img {
    max-height: 42px;
    width: auto;
}

/* Topbar Logged In styling */
.topbar {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 6px 0 !important;
}

.topbar .btn {
    font-size: 0.8rem !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
}

.topbar .btn:hover {
    background-color: #e9ecef !important;
    color: #495057 !important;
}

.topbar .btn-active-client {
    background: linear-gradient(135deg, #48b5dd 0%, #0062cc 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

/* Navbars & Dropdowns */
.main-navbar-wrapper {
    background-color: #ffffff !important;
    border-top: 1px solid #f1f3f5 !important;
}

.main-navbar-wrapper .navbar-nav > li > a {
    color: #495057 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    padding: 12px 16px !important;
    transition: all 0.2s ease;
}

.main-navbar-wrapper .navbar-nav > li > a:hover,
.main-navbar-wrapper .navbar-nav > li.active > a {
    color: #0062cc !important;
    background-color: rgba(72, 181, 221, 0.08) !important;
    border-radius: 6px;
}

.main-navbar-wrapper .navbar-nav .dropdown-menu {
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    padding: 10px 0 !important;
}

.main-navbar-wrapper .navbar-nav .dropdown-menu a {
    font-size: 0.9rem !important;
    color: #495057 !important;
    padding: 8px 20px !important;
    transition: all 0.2s ease;
}

.main-navbar-wrapper .navbar-nav .dropdown-menu a:hover {
    background-color: rgba(72, 181, 221, 0.08) !important;
    color: #0062cc !important;
}

/* PRIMARY STYLING (Buttons, Cards, Badges) */
.btn-primary, .btn-info, .btn-success {
    background: linear-gradient(135deg, #48b5dd 0%, #0062cc 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 98, 204, 0.25) !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover, .btn-info:hover, .btn-success:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(0, 98, 204, 0.4) !important;
    background: linear-gradient(135deg, #0062cc 0%, #48b5dd 100%) !important;
}

.card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03) !important;
    background-color: #ffffff !important;
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f3f5 !important;
    font-weight: 600 !important;
    color: #212529 !important;
    padding: 18px 24px !important;
}

.badge-info, .badge-primary {
    background-color: #48b5dd !important;
    color: #ffffff !important;
}

.badge-success {
    background-color: #28a745 !important;
}

/* DOMAIN SEARCH AREA */
.domain-search-bg {
    background: linear-gradient(135deg, #0d1117 0%, #0062cc 100%) !important;
    padding: 50px 0 !important;
    border-radius: 12px !important;
    margin-top: 20px;
    margin-bottom: 40px;
}

.domain-search-bg h2, .domain-search-bg p {
    color: #ffffff !important;
}

.domain-search-bg .input-group .form-control {
    border-radius: 8px 0 0 8px !important;
    border: none !important;
    padding: 14px 20px !important;
}

.domain-search-bg .input-group .btn {
    border-radius: 0 8px 8px 0 !important;
    padding: 14px 28px !important;
}

/* SIDEBAR STYLING */
.sidebar .list-group-item {
    border: none !important;
    margin-bottom: 6px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #495057 !important;
    padding: 12px 18px !important;
    transition: all 0.2s ease;
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item.active {
    background-color: rgba(72, 181, 221, 0.08) !important;
    color: #0062cc !important;
}

.sidebar .list-group-item .badge {
    background-color: #48b5dd !important;
    color: #ffffff !important;
}

/* FOOTER SECTION - HOSTAQUI */
.footer {
    background: #0d1117 !important;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 168, 255, 0.2);
    padding-top: 80px !important;
    padding-bottom: 0 !important;
}

.footer::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer .heading {
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer .heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #00a8ff;
}

.footer-menu {
    padding: 0;
    list-style: none;
}

.footer-menu .menu-item {
    margin-bottom: 12px;
}

.footer-menu .menu-item a {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none !important;
    display: inline-block;
}

.footer-menu .menu-item a:hover {
    color: #00a8ff !important;
    transform: translateX(5px);
}

.footer .copyright {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem;
    margin-top: 20px;
    line-height: 1.6;
}

.soc-icons {
    margin-top: 15px;
}

.soc-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

.soc-icons a i {
    color: #fff;
    font-size: 1rem;
}

.soc-icons a:hover {
    background: #00a8ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.4);
    border-color: #00a8ff;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0 !important;
    margin-top: 50px;
}

.payment-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.payment-list p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.payment-list i {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.payment-list i:hover {
    color: #00a8ff;
}

.footer .logo-bg {
    opacity: 0.03 !important;
    position: absolute;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* RESPONSIVENESS AND MOBILE FIXES */
@media (max-width: 991.98px) {
    .main-navbar-wrapper .navbar-nav > li > a {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 767.98px) {
    .infonews {
        text-align: center;
    }
    .infonews .news {
        text-align: center;
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 6px;
    }
    .infonews .link {
        text-align: center;
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .infonews .infonews-nav {
        float: none !important;
        display: inline-block;
    }

    header.header .navbar-brand {
        margin-right: 0 !important;
    }

    .main-navbar-wrapper {
        border-top: none !important;
    }

    .sidebar {
        margin-bottom: 30px;
    }

    .footer {
        padding-top: 50px !important;
        text-align: center;
    }
    .footer .heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-menu .menu-item a:hover {
        transform: translateY(-2px);
    }
    .payment-list {
        justify-content: center;
        margin-top: 20px;
    }
    .logo-footer {
        margin: 0 auto 30px !important;
    }
    .soc-icons {
        margin-bottom: 30px;
    }
}

/* Ensure WHMCS default tables are responsive */
.table-responsive {
    border: none !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    background-color: #ffffff;
}

.table thead th {
    border-bottom: 2px solid #f1f3f5 !important;
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 600 !important;
}

.table td {
    vertical-align: middle !important;
    border-top: 1px solid #f1f3f5 !important;
}

/* HOMEPAGE REDESIGN STYLING */
.homepage-hero {
    background: linear-gradient(135deg, #0d1117 0%, #0062cc 100%) !important;
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 98, 204, 0.15);
    border: 1px solid rgba(72, 181, 221, 0.2);
}

.homepage-hero h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 15px;
}

.homepage-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 700px;
    margin: 0 auto;
}

.home-domain-search {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #eef2f5 !important;
    padding: 30px !important;
    margin-bottom: 40px !important;
}

.home-domain-search h2 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #212529 !important;
    margin-bottom: 20px !important;
    text-align: center;
}

.home-domain-search .input-group {
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ced4da;
}

.home-domain-search .form-control {
    border: none !important;
    padding: 15px 20px !important;
    font-size: 1rem !important;
    height: auto !important;
}

.home-domain-search .btn {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    padding: 15px 30px !important;
    border-radius: 0 !important;
}

.tld-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    flex-wrap: wrap;
}

.tld-logos li {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tld-logos li img {
    max-height: 18px;
}

/* Card listing grid updates */
.card-columns.home {
    column-count: 3;
    gap: 24px;
}

@media (max-width: 991.98px) {
    .card-columns.home {
        column-count: 2;
    }
}

@media (max-width: 767.98px) {
    .card-columns.home {
        column-count: 1;
    }
}

.card-columns.home .card {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    overflow: hidden;
}

.card-columns.home .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(72, 181, 221, 0.15) !important;
    border-color: rgba(72, 181, 221, 0.3) !important;
}

.card-columns.home .card .card-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #212529 !important;
}

.card-columns.home .card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.card-columns.home .card .btn {
    background: transparent !important;
    border: 2px solid #0062cc !important;
    color: #0062cc !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.card-columns.home .card:hover .btn,
.card-columns.home .card .btn:hover {
    background: linear-gradient(135deg, #48b5dd 0%, #0062cc 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(0, 98, 204, 0.2) !important;
}

/* Shortcuts buttons */
.action-icon-btns a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 15px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    color: #495057 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    margin-bottom: 20px;
    min-height: 140px;
}

.action-icon-btns a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    color: #0062cc !important;
    text-decoration: none !important;
}

.action-icon-btns a .ico-container {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.action-icon-btns a:hover .ico-container {
    transform: scale(1.1);
}

.card-accent-teal .ico-container {
    background: rgba(72, 181, 221, 0.1) !important;
    color: #48b5dd !important;
}
.card-accent-teal:hover {
    border-color: #48b5dd !important;
}

.card-accent-pomegranate .ico-container {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}
.card-accent-pomegranate:hover {
    border-color: #dc3545 !important;
}

.card-accent-sun-flower .ico-container {
    background: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
}
.card-accent-sun-flower:hover {
    border-color: #ffc107 !important;
}

.card-accent-asbestos .ico-container {
    background: rgba(108, 117, 125, 0.1) !important;
    color: #6c757d !important;
}
.card-accent-asbestos:hover {
    border-color: #6c757d !important;
}

.card-accent-green .ico-container {
    background: rgba(40, 167, 69, 0.1) !important;
    color: #28a745 !important;
}
.card-accent-green:hover {
    border-color: #28a745 !important;
}

.card-accent-midnight-blue .ico-container {
    background: rgba(0, 98, 204, 0.1) !important;
    color: #0062cc !important;
}
.card-accent-midnight-blue:hover {
    border-color: #0062cc !important;
}

@media (max-width: 575.98px) {
    .homepage-hero {
        padding: 40px 20px;
    }
    .homepage-hero h1 {
        font-size: 2rem !important;
    }
    .home-domain-search {
        padding: 20px !important;
    }
    .home-domain-search .btn {
        width: 100%;
        border-radius: 6px !important;
        margin-top: 10px;
        padding: 12px !important;
    }
}
