/* MikroVPS Theme - NextJS Design Integration */

/* Domain Pricing Page Styles */
.domain-pricing-page {
    padding: 1rem 0;
}

/* Featured TLDs styling */
.featured-tlds-container {
    margin-bottom: 2.5rem;
}

.featured-tld {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.featured-tld:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.featured-tld .img-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.featured-tld .img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.featured-tld .price {
    font-weight: 700;
    color: #1d4ed8;
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

/* TLD category filters */
.tld-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.tld-filters .badge {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background-color: #f1f5f9;
    color: #475569;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.tld-filters .badge:hover {
    background-color: #e2e8f0;
    color: #1e40af;
    transform: translateY(-1px);
}

.tld-filters .badge-success {
    background-color: #1d4ed8;
    color: white;
}

.tld-filters .badge-success:hover {
    background-color: #1e40af;
    color: white;
}

/* Currency selector */
.currency-selector {
    max-width: 200px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Domain pricing table */
#tableDomainPricing {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

#tableDomainPricing th {
    background-color: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

#tableDomainPricing td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

#tableDomainPricing tbody tr:hover {
    background-color: #f8fafc;
}

#tableDomainPricing tbody tr:last-child td {
    border-bottom: none;
}

/* Price value styling */
.price-value {
    font-weight: 700;
    color: #1d4ed8;
    font-size: 1.1rem;
}

/* TLD sale group indicator */
.tld-sale-group {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse-sale 2s infinite;
}

.tld-sale-group-hot {
    background-color: #fee2e2;
    color: #b91c1c;
}

.tld-sale-group-new {
    background-color: #dcfce7;
    color: #15803d;
}

.tld-sale-group-sale {
    background-color: #dbeafe;
    color: #1e40af;
}

@keyframes pulse-sale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Text gradient effect */
.text-gradient {
    background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Card styling for domain pricing page */
.domain-pricing-page .card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.domain-pricing-page .card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.domain-pricing-page .card-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Domain Search Section Styles */
.domain-search-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.domain-search-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.domain-search-circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    animation: pulse 6s infinite ease-in-out;
}

.circle-1 {
    top: 10%;
    left: 10%;
    width: 8rem;
    height: 8rem;
    animation-delay: 0s;
}

.circle-2 {
    bottom: 20%;
    right: 20%;
    width: 12rem;
    height: 12rem;
    animation-delay: 2s;
}

.circle-3 {
    top: 50%;
    left: 25%;
    width: 6rem;
    height: 6rem;
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.15;
    }
    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

.domain-search-form {
    position: relative;
    z-index: 10;
}

.domain-search-form .form-control {
    height: 3.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding-left: 3rem;
}

.domain-search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.domain-search-form .input-group-text {
    background-color: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
}

.domain-search-button {
    background-color: #48bb78;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.domain-search-button:hover {
    background-color: #38a169;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.domain-search-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #2f855a;
    transition: height 0.3s ease;
    z-index: -1;
}

.domain-search-button:hover::after {
    height: 100%;
}

.domain-pricing-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.domain-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: white;
}

.domain-price {
    color: #9ae6b4;
    margin-left: 0.5rem;
    font-weight: 400;
}

/* Font settings */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a202c;
    background-color: #f7fafc;
}

/* Text gradient effect */
.text-gradient {
    background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Header styling */
.header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    max-height: 40px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.navbar-light {
    background-color: #ffffff;
}

.navbar-light .py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Button styling */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
    padding: 0.5rem 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #1d4ed8;
    border: none;
    color: white;
}

.btn-primary:hover {
    background-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-outline-primary {
    color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-outline-primary:hover {
    background-color: #1d4ed8;
    color: white !important;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-success {
    background-color: #48bb78;
    border: none;
    color: white;
}

.btn-success:hover {
    background-color: #38a169;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-danger {
    background-color: #e53e3e;
    border: none;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.rounded-pill {
    border-radius: 50rem;
}

/* Card styling */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    background-color: #fff;
    overflow: hidden; /* Ensure child elements respect the rounded corners */
}

.card:hover {
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    padding: 1rem 1.5rem;
    font-weight: 600;
    /* Ensure header respects parent card's rounding */
    border-top-left-radius: inherit; /* Inherit from .card's border-radius */
    border-top-right-radius: inherit; /* Inherit from .card's border-radius */
}

.card-footer {
    background-color: #f8fafc;
    border-top: 1px solid #edf2f7;
    padding: 1rem 1.5rem;
    /* Ensure footer respects parent card's rounding */
    border-bottom-left-radius: inherit; /* Inherit from .card's border-radius */
    border-bottom-right-radius: inherit; /* Inherit from .card's border-radius */
}

/* Footer styling */
.footer {
    background-color: #1a202c !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

/* Form controls */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    color: #2d3748;
    background-color: #fff;
}

.form-control:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f7fafc;
    opacity: 0.7;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-size: 0.875rem;
}

.input-group-text {
    background-color: #f7fafc;
    border-color: #e2e8f0;
    color: #4a5568;
    padding: 0 0.5rem 0 0.5rem;
}

.custom-select {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.5rem 1.75rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #2d3748;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3e%3cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%234a5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-size: 0.85rem;
    background-repeat: no-repeat;
    appearance: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 38px;
}

.custom-select:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15);
    outline: none;
}

/* Fix for select options text overflow */
select.form-control option,
select.custom-select option {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.5rem 0.75rem;
}

.custom-file-input {
    height: calc(1.5em + 1.25rem + 2px);
}

.custom-file-label {
    border-color: #e2e8f0;
    background-color: #fff;
    height: calc(1.5em + 1.25rem + 2px);
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: #4a5568;
    border-radius: 0.375rem;
}

.custom-file-label::after {
    height: calc(1.5em + 1.25rem);
    padding: 0.625rem 0.75rem;
    background-color: #f7fafc;
    color: #4a5568;
}

/* Breadcrumb styling */
.master-breadcrumb {
    background-color: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    padding: 0.75rem 0;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

/* Table styling */
.table {
    color: #4a5568;
    margin-bottom: 1.5rem;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

/* Fix table border radius */
.table-container {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Basic table styling */
.table th, 
.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
    line-height: 1.5;
}

.table th {
    font-weight: 600;
    color: #2d3748;
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Striped tables */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fafc;
}

/* Hover effect */
.table-hover tbody tr {
    transition: background-color 0.15s ease-in-out;
}

.table-hover tbody tr:hover {
    background-color: #edf2f7;
}

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

/* Table list (used in client area) */
.table-list {
    margin-bottom: 0;
}

.table-list thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #2d3748;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.table-list tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

.table-list tbody tr:hover {
    background-color: #edf2f7;
}

.table-list tbody tr td {
    vertical-align: middle;
    padding: 1rem;
    border-top: none;
    border-bottom: 1px solid #edf2f7;
}

/* Special table rows */
.table .total-row td,
.table tr.total-row td {
    font-weight: 600;
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
    background-color: #f8fafc;
}

/* Masspay table styling */
.masspay-invoice-detail td {
    padding-left: 2rem;
}

.masspay-total td {
    font-weight: 600;
}

/* DataTables integration */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #4a5568;
    font-size: 0.875rem;
    padding: 1rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    background-color: #fff;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15);
    outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.375rem 0.75rem;
    margin-left: 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: #fff;
    color: #1d4ed8 !important;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #edf2f7;
    color: #1e40af !important;
    border-color: #e2e8f0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #a0aec0 !important;
    border-color: #e2e8f0;
    background-color: #fff;
    cursor: default;
}

/* Table loading state */
#tableLoading {
    padding: 2rem 0;
    color: #4a5568;
    font-size: 0.875rem;
}

#tableLoading .fas {
    color: #1d4ed8;
    margin-right: 0.5rem;
}

/* Ticket list specific styling */
.ticket-number {
    font-weight: 600;
    color: #2d3748;
    margin-right: 0.75rem;
}

.ticket-subject {
    color: #4a5568;
}

.ticket-subject.unread {
    font-weight: 600;
    color: #2d3748;
}

/* Status labels in tables */
.table .label.status {
    display: inline-block;
    padding: 0.25em 0.75em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

/* Pagination styling */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    margin: 1rem 0;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0.375rem;
    min-width: 4.5rem;
    text-align: center;
}

.pagination .page-item.active .page-link {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
    font-weight: 600;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link {
    color: #a0aec0;
    pointer-events: none;
    background-color: #f8fafc;
    border-color: #edf2f7;
}

.pagination .page-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    min-width: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: #4a5568;
    background-color: white;
    border: 1px solid #edf2f7;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    box-shadow: none;
    text-decoration: none;
}

.pagination .page-link:hover {
    z-index: 2;
    color: #1d4ed8;
    text-decoration: none;
    background-color: #f7fafc;
    border-color: #e2e8f0;
    transform: none;
}

.pagination .page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15);
}

/* DataTables pagination specific styling */
.dataTables_wrapper .dataTables_paginate {
    padding: 1rem 0 0.5rem;
    display: flex;
    justify-content: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-block;
    height: 2.25rem;
    min-width: 2.25rem;
    margin: 0 0.25rem;
    padding: 0 0rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 2.25rem;
    text-align: center;
    border-radius: 0.375rem;
    background-color: white;
    border: 1px solid #edf2f7;
    color: #4a5568 !important;
    transition: all 0.15s ease;
    box-shadow: none;
    text-decoration: none !important;
}

/* Dropdown Menu Styling - NextJS Integration */
.dropdown-menu {
    min-width: 12rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    color: #4a5568;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 -2px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    animation: dropdown-animation 0.2s ease-out;
    transform-origin: top center;
}

@keyframes dropdown-animation {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.625rem 1.25rem;
    clear: both;
    font-weight: 500;
    color: #4a5568;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all 0.15s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #1d4ed8;
    text-decoration: none;
    background-color: #f7fafc;
}

.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #1d4ed8;
}

.dropdown-item.disabled, .dropdown-item:disabled {
    color: #a0aec0;
    pointer-events: none;
    background-color: transparent;
}

.dropdown-item i,
.dropdown-item .fas,
.dropdown-item .far,
.dropdown-item .fal,
.dropdown-item .fab {
    margin-right: 0.75rem;
    font-size: 0.875rem;
    color: #a0aec0;
    transition: color 0.15s ease;
}

.dropdown-item:hover i,
.dropdown-item:hover .fas,
.dropdown-item:hover .far,
.dropdown-item:hover .fal,
.dropdown-item:hover .fab {
    color: #1d4ed8;
}

.dropdown-item.active i,
.dropdown-item.active .fas,
.dropdown-item.active .far,
.dropdown-item.active .fal,
.dropdown-item.active .fab,
.dropdown-item:active i,
.dropdown-item:active .fas,
.dropdown-item:active .far,
.dropdown-item:active .fal,
.dropdown-item:active .fab {
    color: #fff;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #edf2f7;
}

.dropdown-header {
    display: block;
    padding: 0.5rem 1.25rem;
    margin-bottom: 0;
    font-size: 0.75rem;
    color: #a0aec0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: 0.15em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.2s ease;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Custom dropdown styles for specific areas */
.navbar .dropdown-menu {
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    padding: 0.5rem 1.25rem;
}

.navbar .dropdown-item i,
.navbar .dropdown-item .fas,
.navbar .dropdown-item .far,
.navbar .dropdown-item .fal,
.navbar .dropdown-item .fab {
    width: 1.25rem;
    text-align: center;
}

/* Dropdown menu positioning */
.dropdown-menu-right {
    right: 0;
    left: auto;
}

.dropdown-menu-left {
    right: auto;
    left: 0;
}

/* Multi-level dropdown support */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
    margin-left: 0.125rem;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a::after {
    display: block;
    float: right;
    content: "";
    margin-top: 0.5rem;
    margin-right: -0.625rem;
    border-color: transparent;
    border-style: solid;
    border-width: 0.3em 0 0.3em 0.3em;
    border-left-color: currentColor;
}

/* Dropdown with icons and descriptions */
.dropdown-item-with-desc {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.25rem;
}

.dropdown-item-with-desc .dropdown-item-title {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.dropdown-item-with-desc .dropdown-item-desc {
    margin-top: 0.25rem;
    margin-left: 2rem;
    font-size: 0.75rem;
    color: #718096;
}

/* Dropdown with badges */
.dropdown-item .badge {
    margin-left: auto;
}

/* Dropdown menu with search */
.dropdown-menu-search {
    padding: 0.75rem;
}

.dropdown-menu-search .form-control {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

/* Dropdown menu with scrollable content */
.dropdown-menu-scrollable {
    max-height: 20rem;
    overflow-y: auto;
}

/* Dropdown menu with grid layout */
.dropdown-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    min-width: 20rem;
}

.dropdown-menu-grid .dropdown-item {
    border-radius: 0.375rem;
    padding: 0.75rem;
    text-align: center;
    white-space: normal;
}

.dropdown-menu-grid .dropdown-item i,
.dropdown-menu-grid .dropdown-item .fas,
.dropdown-menu-grid .dropdown-item .far,
.dropdown-menu-grid .dropdown-item .fal,
.dropdown-menu-grid .dropdown-item .fab {
    display: block;
    margin: 0 auto 0.5rem;
    font-size: 1.25rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    min-width: 4.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #f7fafc !important;
    color: #1d4ed8 !important;
    border-color: #e2e8f0;
    transform: none;
    z-index: 1;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8;
    color: white !important;
    font-weight: 600;
    box-shadow: none;
    z-index: 2;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #a0aec0 !important;
    border-color: #edf2f7;
    background-color: #f8fafc !important;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Fix for pagination buttons appearing as multiple buttons */
.pagination .page-item .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button {
    position: relative;
    overflow: hidden;
    background-image: none;
}

.pagination .page-item .page-link::before,
.dataTables_wrapper .dataTables_paginate .paginate_button::before {
    display: none;
}

.pagination .page-item .page-link::after,
.dataTables_wrapper .dataTables_paginate .paginate_button::after {
    display: none;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #c6f6d5;
    color: #276749;
}

.alert-info {
    background-color: #bee3f8;
    color: #2c5282;
}

.alert-warning {
    background-color: #feebc8;
    color: #c05621;
}

.alert-danger {
    background-color: #fed7d7;
    color: #c53030;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
}

.badge-info {
    background-color: #1d4ed8;
}

/* Enhanced Sidebar styling to match NextJS design */
.sidebar, .cart-sidebar {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
    align-self: flex-start;
}

.sidebar .card, .cart-sidebar .card {
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
}

.sidebar .card:not(:last-child), .cart-sidebar .card:not(:last-child) {
    border-bottom: 1px solid #edf2f7;
}

.sidebar .card-header, .cart-sidebar .card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    padding: 1.25rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: #1a202c;
    display: flex;
    align-items: center;
}

.sidebar .card-header .card-title .card-minimise, 
.panel-heading .panel-title .panel-minimise {
    padding-left: 1rem;
}

.sidebar .card-sidebar .card-minimise.minimised {
    padding-right: 1rem !important;
}

.sidebar .card-header i, 
.sidebar .card-header .fas,
.sidebar .card-header .far,
.sidebar .card-header .fal,
.sidebar .card-header .fab,
.cart-sidebar .card-header i, 
.cart-sidebar .card-header .fas,
.cart-sidebar .card-header .far,
.cart-sidebar .card-header .fal,
.cart-sidebar .card-header .fab {
    margin-right: 0.5rem;
    color: #1d4ed8;
    font-size: 0.875rem;
}

.sidebar .card-body, .cart-sidebar .card-body {
    padding: 1.5rem 1.75rem;
}

.sidebar .list-group, .cart-sidebar .list-group {
    border-radius: 0;
    margin: -1px -2.5rem;
}

.sidebar .list-group-item, .cart-sidebar .list-group-item {
    border-left: 0;
    border-right: 0;
    border-color: #edf2f7;
    padding: 0.75rem 3.5rem;
    font-size: 0.875rem;
    color: #4a5568;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar .list-group-item:first-child, .cart-sidebar .list-group-item:first-child {
    border-top: 0;
}

.sidebar .list-group-item:last-child, .cart-sidebar .list-group-item:last-child {
    border-bottom: 0;
}

.sidebar .list-group-item:hover, .cart-sidebar .list-group-item:hover {
    background-color: #edf2f7;
    color: #1d4ed8;
}

.sidebar .list-group-item.active, .cart-sidebar .list-group-item.active {
    background-color: #e6f0ff;
    color: #1d4ed8;
    border-color: #e6f0ff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sidebar .list-group-item.active::before, .cart-sidebar .list-group-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #1d4ed8;
}

.sidebar .list-group-item i,
.sidebar .list-group-item .fas,
.sidebar .list-group-item .far,
.sidebar .list-group-item .fal,
.sidebar .list-group-item .fab,
.cart-sidebar .list-group-item i,
.cart-sidebar .list-group-item .fas,
.cart-sidebar .list-group-item .far,
.cart-sidebar .list-group-item .fal,
.cart-sidebar .list-group-item .fab {
    margin-right: 0.75rem;
    color: #a0aec0;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.sidebar .list-group-item:hover i,
.sidebar .list-group-item:hover .fas,
.sidebar .list-group-item:hover .far,
.sidebar .list-group-item:hover .fal,
.sidebar .list-group-item:hover .fab,
.sidebar .list-group-item.active i,
.sidebar .list-group-item.active .fas,
.sidebar .list-group-item.active .far,
.sidebar .list-group-item.active .fal,
.sidebar .list-group-item.active .fab,
.cart-sidebar .list-group-item:hover i,
.cart-sidebar .list-group-item:hover .fas,
.cart-sidebar .list-group-item:hover .far,
.cart-sidebar .list-group-item:hover .fal,
.cart-sidebar .list-group-item:hover .fab,
.cart-sidebar .list-group-item.active i,
.cart-sidebar .list-group-item.active .fas,
.cart-sidebar .list-group-item.active .far,
.cart-sidebar .list-group-item.active .fal,
.cart-sidebar .list-group-item.active .fab {
    color: #1d4ed8;
}

.sidebar .list-group-item.active, 
.sidebar .list-group-item.active:focus, 
.sidebar .list-group-item.active:hover,
.cart-sidebar .list-group-item.active, 
.cart-sidebar .list-group-item.active:focus, 
.cart-sidebar .list-group-item.active:hover {
    background-color: #e6f0ff;
    border: 0;
}

.sidebar .badge, .cart-sidebar .badge {
    float: right;
    margin-left: 0.5rem;
}

/* Cart sidebar specific styles */
.cart-sidebar .panel-heading {
    background-color: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    padding: 1.25rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: #1a202c;
}

.cart-sidebar .panel-body {
    padding: 1.5rem 1.75rem;
}

.cart-sidebar .header-lined {
    margin-bottom: 1rem;
}

.cart-sidebar .header-lined h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

#order-standard_cart .cart-sidebar {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#order-standard_cart .cart-sidebar .list-group-item {
    padding: 0.75rem 3.5rem !important;
}

#order-standard_cart .field, #order-standard_cart .form-control {
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    padding: 0 0 0 1em;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    color: #2d3748;
    background-color: #fff;
}

/* Client Home Panels */
.client-home-cards .card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.client-home-cards .card:hover {
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.client-home-cards .card-title {
    font-weight: 600;
    font-size: 1rem;
    color: #2d3748;
    display: flex;
    align-items: center;
}

.client-home-cards .card-title i,
.client-home-cards .card-title .fas,
.client-home-cards .card-title .far,
.client-home-cards .card-title .fal,
.client-home-cards .card-title .fab {
    margin-right: 0.5rem;
}

.client-home-cards .list-group {
    margin: 0;
    border-radius: 0.375rem;
    overflow: hidden;
}

.client-home-cards .list-group-item {
    border-left: 0;
    border-right: 0;
    border-color: #edf2f7;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.client-home-cards .list-group-item:hover {
    background-color: #f7fafc;
}

.client-home-cards .card-header .btn {
    margin-right: 1rem !important;
}

/* Service cards (like Google Workspace) */
.card .row {
    margin-left: 0;
    margin-right: 0;
}

/* Support ticket and news cards */
.list-group-item {
    border-color: #edf2f7;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8fafc;
}

/* Domain registration section */
.domain-registration {
    display: flex;
    gap: 0.5rem;
}

.domain-registration .btn {
    flex: 1;
}

/* Home page tiles */
.tiles .tile {
    display: block;
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    height: 100%;
    text-decoration: none;
    color: #4a5568;
    position: relative;
    overflow: hidden;
}

.tiles .tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    color: #2d3748;
    text-decoration: none;
}

.tiles .tile i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #1d4ed8;
    transition: all 0.2s ease;
}

.tiles .tile:hover i {
    transform: scale(1.1);
}

.tiles .tile .stat {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.tiles .tile .title {
    font-weight: 500;
    color: #4a5568;
}

.tiles .tile .highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.2s ease;
}

.tiles .tile:hover .highlight {
    height: 6px;
}

.bg-color-blue {
    background-color: #1d4ed8;
}

.bg-color-green {
    background-color: #48bb78;
}

.bg-color-red {
    background-color: #e53e3e;
}

.bg-color-gold {
    background-color: #ecc94b;
}

/* Action icon buttons */
.action-icon-btns a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    color: #4a5568;
    text-decoration: none;
    height: 100%;
}

.action-icon-btns a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    color: #2d3748;
    text-decoration: none;
}

.action-icon-btns .ico-container {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background-color: #f7fafc;
    transition: all 0.2s ease;
}

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

.action-icon-btns .ico-container i {
    font-size: 1.5rem;
    color: #1d4ed8;
}

.action-icon-btns a.card-accent-teal .ico-container {
    background-color: rgba(56, 178, 172, 0.1);
}

.action-icon-btns a.card-accent-teal .ico-container i {
    color: #38b2ac;
}

.action-icon-btns a.card-accent-pomegranate .ico-container {
    background-color: rgba(229, 62, 62, 0.1);
}

.action-icon-btns a.card-accent-pomegranate .ico-container i {
    color: #e53e3e;
}

.action-icon-btns a.card-accent-sun-flower .ico-container {
    background-color: rgba(236, 201, 75, 0.1);
}

.action-icon-btns a.card-accent-sun-flower .ico-container i {
    color: #ecc94b;
}

.action-icon-btns a.card-accent-asbestos .ico-container {
    background-color: rgba(113, 128, 150, 0.1);
}

.action-icon-btns a.card-accent-asbestos .ico-container i {
    color: #718096;
}

.action-icon-btns a.card-accent-green .ico-container {
    background-color: rgba(72, 187, 120, 0.1);
}

.action-icon-btns a.card-accent-green .ico-container i {
    color: #48bb78;
}

.action-icon-btns a.card-accent-midnight-blue .ico-container {
    background-color: rgba(29, 78, 216, 0.1);
}

.action-icon-btns a.card-accent-midnight-blue .ico-container i {
    color: #1d4ed8;
}

/* Domain search styling */
.domain-search-input {
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Invoice styling */
.invoice-container {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

/* Status labels and badges */
.status, .label {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.status-active, .status-paid, .label-success {
    background-color: #48bb78;
    color: white;
}

.status-pending, .label-warning {
    background-color: #ed8936;
    color: white;
}

.status-suspended, .status-unpaid, .label-danger {
    background-color: #e53e3e;
    color: white;
}

.status-terminated, .status-cancelled, .label-default {
    background-color: #718096;
    color: white;
}

.status-closed {
    background-color: #a0aec0;
    color: white;
}

/* This is for the "Closed" label on tickets */
.label {
    margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
    }
    
    .sidebar {
        margin-bottom: 1rem;
    }
    
    .sidebar .card-header {
        padding: 1rem 1.25rem;
    }
    
    .sidebar .card-body {
        padding: 1.25rem 1.5rem;
    }
}

/* Mobile Navigation Submenu Overrides - v2 */
@media (max-width: 1199.98px) {
    /* Force the mobile dropdown menu to behave like a static block, not a popup */
    #header #mainNavbar.collapse.show .navbar-nav .dropdown-menu {
        position: static !important;
        width: 100% !important;
        float: none !important;
        
        /* Reset visual styles to blend into the main mobile menu */
        background-color: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        animation: none !important;
    }

    /* Style the links within the now-static dropdown menu */
    #header #mainNavbar.collapse.show .navbar-nav .dropdown-menu .dropdown-item,
    #header #mainNavbar.collapse.show .navbar-nav .dropdown-menu .nav-link {
        font-weight: 400 !important;
        color: #343a40 !important;
        background-color: transparent !important;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        padding: 0;
    }

    /* Hover effect for submenu items */
    #header #mainNavbar.collapse.show .navbar-nav .dropdown-menu .dropdown-item:hover,
    #header #mainNavbar.collapse.show .navbar-nav .dropdown-menu .nav-link:hover {
        color: #1d4ed8 !important;
        background-color: #f8f9fa !important;
    }
    
    /* Remove the bottom border from the very last item in the entire list */
    #header #mainNavbar.collapse.show .navbar-nav .nav-item:last-child > .nav-link,
    #header #mainNavbar.collapse.show .navbar-nav .nav-item:last-child .dropdown-menu li:last-child > a {
         border-bottom: none !important;
    }
}

/* configuredomains.tpl Modernization */
#order-standard_cart .cart-body .sub-heading {
    background-color: transparent; /* Remove background */
    padding: 0 0 0.75rem 0; /* Adjust padding, remove top/left/right, add bottom */
    margin-top: 0; /* Remove top margin as it's now inside a card-body */
    margin-bottom: 1.5rem;
    border-radius: 0; /* No radius needed */
    border: none; /* Remove border */
    border-bottom: 1px solid #e2e8f0; /* Optional: light separator line below sub-heading */
}

#order-standard_cart .cart-body .sub-heading .primary-bg-color { /* This class is used for the domain name itself */
    background-color: transparent !important; /* Ensure no inline background */
    font-size: 1.25rem; /* Increase font size for better hierarchy */
    font-weight: 600;
    color: #2d3748; /* Darker, more standard heading color */
}

#order-standard_cart .cart-body .form-group {
    margin-bottom: 1.25rem; /* Consistent form group spacing */
}

#order-standard_cart .cart-body .form-group label:not(.form-check-label):not(.field-icon) { /* Exclude form-check labels and field icons */
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-size: 0.875rem;
    display: block; /* Ensure labels take full width if needed */
}

/* configuredomains.tpl Addon Card Rework */
#order-standard_cart .domain-configuration-card .addon-products {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem; /* Reduce bottom margin if it's the last element before custom fields */
}

#order-standard_cart .domain-configuration-card .addon-card {
    border: 1px solid #dee2e6; /* Standard card border */
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    border-radius: 0.375rem; /* Standard border-radius */
    margin-bottom: 1rem; /* Spacing between addon options */
}

#order-standard_cart .domain-configuration-card .addon-card .card-body {
    padding: 1rem; /* Consistent padding */
    display: flex; /* Align checkbox, label, and info nicely */
    flex-direction: column; /* Stack checkbox/label and description */
}

#order-standard_cart .domain-configuration-card .addon-card .form-check {
    display: flex;
    align-items: center;
    width: 100%; /* Ensure form-check takes full width */
}

#order-standard_cart .domain-configuration-card .addon-card .form-check-input {
    margin-top: 0.1em; /* Slight adjustment for vertical alignment with text */
    margin-right: 0.5rem; /* Keep a small margin, but primary spacing will be label padding */
    height: 1.15em; 
    width: 1.15em;
    flex-shrink: 0; 
}

#order-standard_cart .domain-configuration-card .addon-card .form-check-label {
    margin-bottom: 0; 
    font-weight: 500;
    color: #343a40;
    line-height: 1.4; 
    padding-left: 0.5rem; /* Add padding to the left of the label text */
    flex-grow: 1; /* Allow label to take up space */
}

#order-standard_cart .domain-configuration-card .addon-card .form-check-label strong {
    font-weight: 600; 
}

#order-standard_cart .domain-configuration-card .addon-card p.text-muted.small {
    margin-top: 0.5rem; 
    /* The indentation should be based on the checkbox width + its margin + label's padding-left */
    margin-left: calc(1.15em + 0.5rem + 0.5rem); 
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0; 
}

#order-standard_cart .domain-configuration-card .addon-card .card-footer {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-size: 0.85rem;
}

#order-standard_cart .domain-configuration-card .addon-card.selected {
    border-color: #1d4ed8;
    background-color: #e6f0ff; /* Light blue background for selected */
}

#order-standard_cart .domain-configuration-card .addon-card.selected .form-check-label strong,
#order-standard_cart .domain-configuration-card .addon-card.selected .price {
    color: #1d4ed8; /* Highlight text color for selected */
}

#order-standard_cart .domain-configuration-card .addon-card.selected .card-footer {
    background-color: #dbeafe; /* Slightly darker blue for selected footer */
}

/* Hide the text-muted paragraph if it's empty or just whitespace, to prevent empty space */
#order-standard_cart .domain-configuration-card .addon-card p.text-muted.small:empty {
    display: none;
    margin-top: 0; /* Remove top margin if hidden */
}

/* configureproductdomain.tpl Modernization */
#order-standard_cart .domain-selection-options .option {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
}

#order-standard_cart .domain-selection-options .option label {
    font-weight: 600;
    color: #343a40;
    display: flex; /* Align radio button and text */
    align-items: center;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0.75rem; /* Space between label and input group */
}

#order-standard_cart .domain-selection-options .option input[type="radio"] {
    margin-right: 0.75rem;
    height: 1.15em; /* Consistent radio size */
    width: 1.15em;
    flex-shrink: 0;
}

#order-standard_cart .domain-selection-options .option .domain-input-group {
    padding-left: calc(1.15em + 0.75rem); /* Indent input group to align with label text */
    margin-top: 0.5rem;
    display: none; /* Hidden by default, shown by JS or when radio is checked */
}

#order-standard_cart .domain-selection-options .option input[type="radio"]:checked ~ .domain-input-group {
    display: block;
}

#order-standard_cart .domain-selection-options .option.active, /* WHMCS might add .active */
#order-standard_cart .domain-selection-options .option:has(input[type="radio"]:checked) { /* Modern CSS for selected state */
    border-color: #1d4ed8;
    background-color: #f8faff; /* Very light blue for selected option */
    box-shadow: 0 0 0 1px #1d4ed8;
}

#order-standard_cart .domain-selection-options .option .domains-row {
    margin-bottom: 0; /* Remove default row margin if inside input group */
}

#order-standard_cart .domain-selection-options .option .domains-row .form-control {
    margin-bottom: 0.5rem; /* Spacing for stacked inputs on small screens */
}
@media (min-width: 576px) { /* sm breakpoint */
    #order-standard_cart .domain-selection-options .option .domains-row .form-control {
        margin-bottom: 0;
    }
}

#order-standard_cart .domain-selection-options .option .btn-primary {
    padding: 0.5rem 1rem; /* Adjust padding for better spacing */
    font-size: inherit; /* Inherit font size from parent */
    line-height: 1.5; /* Ensure text fits well */
    white-space: normal; /* Allow text to wrap if absolutely necessary */
    word-break: break-word; /* Break long words if they cause overflow */
    text-align: center;
    flex-shrink: 0; /* Prevent the button from shrinking */
}

#order-standard_cart .domain-selection-options .option-label-clickable {
    display: block; /* Make the label take up the full width of its .option container */
    padding: 0; /* Reset padding if any, .option div has padding */
    margin-bottom: 0; /* Reset margin, .option div has margin */
    cursor: pointer; /* Indicate it's clickable */
}

/* Ensure the radio button itself is vertically aligned with the start of the label text if needed */
#order-standard_cart .domain-selection-options .option-label-clickable input[type="radio"] {
    vertical-align: middle; /* Or top, depending on desired alignment with multi-line text */
    margin-top: -2px; /* Minor adjustment if needed */
}

/* Styling for Domain Search Results Area */
#order-standard_cart #DomainSearchResults {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

#order-standard_cart #DomainSearchResults .domain-lookup-primary-loader .fa-spinner {
    margin-right: 0.5rem;
    color: #1d4ed8;
}

#order-standard_cart #DomainSearchResults .domain-lookup-result .headline {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
#order-standard_cart #DomainSearchResults .domain-lookup-result .domain-unavailable { color: #dc3545; }
#order-standard_cart #DomainSearchResults .domain-lookup-result .domain-available { color: #28a745; }

#order-standard_cart #DomainSearchResults .spotlight-tlds {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
#order-standard_cart #DomainSearchResults .spotlight-tld {
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    border-radius: 0.375rem;
    text-align: center;
    margin-bottom: 0.5rem; /* If they stack */
}
#order-standard_cart #DomainSearchResults .spotlight-tld .price {
    font-weight: 600;
    color: #1d4ed8;
}

#order-standard_cart #DomainSearchResults .suggested-domains .panel-heading {
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}
#order-standard_cart #DomainSearchResults .suggested-domains .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}
#order-standard_cart #DomainSearchResults .suggested-domains .list-group-item .price {
    font-weight: 500;
}

/* domainregister.tpl - Domain Checker Container Background */
#order-standard_cart .domain-checker-container {
    background: linear-gradient(to bottom right, rgba(30, 58, 138, 0.95), rgba(37, 99, 235, 0.9)), radial-gradient(circle at 25% 110%, rgba(59, 130, 246, 0.5) 0%, transparent 25%);
    border-radius: 0.5rem; /* Consistent with theme */
    margin-top: 1.5rem; /* Spacing */
    margin-bottom: 2rem; /* Spacing */
}

/* Minimal adjustments for inputs inside the gradient for basic usability */
#order-standard_cart .domain-checker-container .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Ensure the introductory paragraph before the checker is not affected by the above text color changes,
   and retains its original theme styling. */
#order-standard_cart .cart-body > p:first-of-type {
    color: #4a5568; /* Default body text color from your theme */
    font-size: 1rem; /* Or whatever the standard paragraph font-size is */
    margin-bottom: 1rem; /* Standard paragraph margin */
}

/* Product Details Page - Tab Content Fix */
.product-details-tab-container {
    border: none !important;
}
