/* MoreBilling Frontend Styles */
.morebilling-client-area { max-width: 1200px; margin: 20px auto; font-family: Arial, sans-serif; }

/* Horizontal Menu */
.morebilling-nav { 
    padding: 5px 10px; /* Base padding for left/right, top/bottom */
    padding-top: 15px; /* Override padding-top to fit within max-height */
    position: relative; 
    border-radius: 12px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-height: 40px; /* Desired max height */
    box-sizing: border-box; /* Ensure padding is included in max-height */
}
.morebilling-nav-menus { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0; 
    width: 100%; 
}
.primary-menu, .secondary-menu { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    gap: 0px; 
}
.primary-menu li, .secondary-menu li { 
    position: relative; 
}
.primary-menu a, .secondary-menu a { 
    color: #fff; 
    text-decoration: none; 
    font-weight: bold; 
    padding: 2px 12px; /* Reduced vertical padding to fit within max-height */
    display: block; 
    font-size: 14px; 
    line-height: 1.5; 
}
.primary-menu li.active a { 
    background: #17a2b8; 
    border-radius: 5px; 
}
.primary-menu a:hover, .secondary-menu a:hover { 
    background: #138496; 
    border-radius: 5px; 
}
.primary-menu .has-dropdown > a::after { 
    content: '▼'; 
    margin-left: 5px; 
    font-size: 10px; 
}
.primary-menu .dropdown { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: #1a355e; 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    min-width: 200px; 
    z-index: 10; 
}
.primary-menu .dropdown li { 
    border-bottom: 1px solid #2a4b7c; 
}
.primary-menu .dropdown a { 
    padding: 10px; 
}
.primary-menu .has-dropdown:hover .dropdown { 
    display: block; 
}
.secondary-menu a .dashicons { 
    font-size: 16px; 
    margin-right: 5px; 
    vertical-align: middle; 
}
.morebilling-nav-toggle { 
    display: none; 
    background: #17a2b8; 
    color: #fff; 
    border: none; 
    padding: 2px 10px; /* Reduced padding to fit within max-height */
    font-size: 14px; /* Slightly smaller font to fit */
    cursor: pointer; 
    margin-left: auto; 
}

/* Additional Page Styles */
.morebilling-services, .morebilling-invoices, .morebilling-support, .morebilling-knowledgebase, .morebilling-network-status, .morebilling-affiliates, .morebilling-dns-management, .morebilling-tickets, .morebilling-welcome, .morebilling-announcements, .morebilling-profile { 
    background: #f5f5f5; 
    padding: 20px; 
    border-radius: 5px; 
}
.morebilling-services h2, .morebilling-invoices h2, .morebilling-support h2, .morebilling-knowledgebase h2, .morebilling-network-status h2, .morebilling-affiliates h2, .morebilling-announcements h2, .morebilling-profile h2 { 
    font-size: 18px; 
    margin: 0 0 15px; 
    color: #333; 
}
.morebilling-knowledgebase form { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
}
.morebilling-knowledgebase input { 
    flex: 1; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    min-width: 200px; 
    background: #fff; 
}
.morebilling-knowledgebase button { 
    background: #28a745; 
    color: #fff; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px; 
}
.morebilling-profile form { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    max-width: 500px; 
}
.morebilling-profile label { 
    font-weight: bold; 
    margin-bottom: 5px; 
    display: block; 
}
.morebilling-profile input { 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    width: 100%; 
    box-sizing: border-box; 
}
.morebilling-profile button { 
    background: #28a745; 
    color: #fff; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px; 
    align-self: flex-start; 
    cursor: pointer; 
}
.morebilling-profile button:hover { 
    background: #218838; 
}

/* Welcome Section */
.morebilling-welcome { 
    margin-bottom: 20px; 
}
.morebilling-welcome h1 { 
    color: #1a355e; 
    font-size: 28px; 
    margin-bottom: 20px; 
}
.morebilling-stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; 
    position: relative; 
}
.stat-card { 
    background: #f5f5f5; 
    padding: 15px; 
    border-radius: 5px; 
    text-align: center; 
    position: relative; 
    height: 80px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.stat-card .dashicons { 
    font-size: 50px; 
    position: absolute; 
    top: 50%; 
    left: 20px; 
    transform: translateY(-50%); 
    opacity: 0.2; 
    color: #666; 
}
.stat-card h3 { 
    margin: 0 0 5px; 
    font-size: 14px; 
    color: #666; 
    text-transform: uppercase; 
}
.stat-card p { 
    font-size: 20px; 
    font-weight: bold; 
    margin: 0; 
    color: #333; 
}

/* Knowledgebase Search */
.morebilling-knowledgebase-search { 
    margin-bottom: 20px; 
    position: relative; 
}
.morebilling-knowledgebase-search .dashicons { 
    position: absolute; 
    top: 50%; 
    left: 10px; 
    transform: translateY(-50%); 
    color: #666; 
}
.morebilling-knowledgebase-search input { 
    width: 100%; 
    padding: 10px 10px 10px 40px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    background: #f5f5f5; 
}

/* Main Content */
.morebilling-row { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 20px; 
    flex-wrap: wrap; 
}
.morebilling-column { 
    background: #f5f5f5; 
    padding: 20px; 
    border-radius: 5px; 
    flex: 1; 
    min-width: 300px; 
}
.morebilling-column h2 { 
    font-size: 18px; 
    margin: 0 0 15px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: #333; 
    position: relative; 
}
.morebilling-column h2 .dashicons { 
    font-size: 20px; 
    color: #666; 
}
.morebilling-column h2 .view-all, .morebilling-column h2 .open-ticket { 
    margin-left: auto; 
    font-size: 14px; 
    text-decoration: none; 
}
.morebilling-column h2 .view-all { 
    color: #f5a623; 
}
.morebilling-column h2 .open-ticket { 
    color: #0073aa; 
}
.active-services ul, .recent-tickets ul, .shortcuts ul { 
    list-style: none; 
    padding: 0; 
}
.active-services li, .recent-tickets li, .shortcuts li { 
    padding: 10px 0; 
    border-bottom: 1px solid #ddd; 
}
.domain-register form { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
}
.domain-register input { 
    flex: 1; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    min-width: 200px; 
    background: #fff; 
}
.domain-register .morebilling-register-btn { 
    background: #28a745; 
    color: #fff; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px; 
}
.domain-register .morebilling-transfer-btn { 
    background: #6c757d; 
    color: #fff; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px; 
}
.recent-news p { 
    margin: 5px 0; 
}
.recent-news em { 
    color: #666; 
    font-size: 12px; 
}
a { 
    color: #0073aa; 
    text-decoration: none; 
}
a:hover { 
    text-decoration: underline; 
}

/* Main Content */
.domain-register form { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
}
.domain-register input { 
    flex: 1; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    min-width: 200px; 
    background: #fff; 
}
.domain-register .morebilling-register-btn, .domain-register .morebilling-transfer-btn { 
    padding: 10px 20px; 
    border: none; 
    border-radius: 5px; 
    text-decoration: none; 
    color: #fff; 
    cursor: pointer; 
    display: inline-block; 
    font-weight: bold; 
}
.domain-register .morebilling-register-btn { 
    background: #28a745; 
}
.domain-register .morebilling-register-btn:hover { 
    background: #218838; 
}
.domain-register .morebilling-transfer-btn { 
    background: #6c757d; 
}
.domain-register .morebilling-transfer-btn:hover { 
    background: #5a6268; 
}
.domain-results-container { 
    margin-top: 20px; 
    background: #fff; 
    border-radius: 5px; 
    width: 100%; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

/* Main Content */
.morebilling-row { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    margin-top: 20px; 
}
.morebilling-column { 
    flex: 1 1 45%; 
    min-width: 300px; 
    background: #fff; 
    padding: 20px; 
    border-radius: 5px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    border: 1px solid #ddd; 
}
.active-services ul, .recent-tickets ul { 
    list-style: none; 
    padding: 0; 
}
.active-services li, .recent-tickets li { 
    padding: 10px 0; 
    border-bottom: 1px solid #eee; 
}
.active-services li:last-child, .recent-tickets li:last-child { 
    border-bottom: none; 
}
.active-services h2, .recent-tickets h2, .domain-register h2, .recent-news h2 { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-top: 0; 
}
.active-services h2 .dashicons, .recent-tickets h2 .dashicons, .domain-register h2 .dashicons, .recent-news h2 .dashicons { 
    margin-right: 10px; 
}
.view-all, .open-ticket { 
    font-size: 14px; 
    color: #0073aa; 
    text-decoration: none; 
}
.view-all:hover, .open-ticket:hover { 
    text-decoration: underline; 
}

.stat-card.services {
    background: transparent;
    border-left: 5px solid #17a2b8;
    border-bottom: 5px solid #17a2b8;
}

.stat-card.domains {
    background: transparent;
    border-left: 5px solid #ff851b;
    border-bottom: 5px solid #ff851b;
}

.stat-card.tickets {
    background: transparent;
    border-left: 5px solid #dc3545;
    border-bottom: 5px solid #dc3545;
}

.stat-card.invoices {
    background: transparent;
    border-left: 5px solid #28a745;
    border-bottom: 5px solid #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .morebilling-nav { 
        padding: 5px 10px; 
        flex-wrap: wrap; 
        justify-content: flex-end; 
        max-height: 40px; /* Keep max-height in mobile view */
    }
    .morebilling-nav-menus { 
        display: none; 
        flex-direction: column; 
        background: #1a355e; 
        position: absolute; 
        top: 30px; /* Adjusted for the reduced height */
        left: 0; 
        right: 0; 
        z-index: 10; 
        border-radius: 0 0 5px 5px; 
    }
    .morebilling-nav-menus.active { 
        display: flex; 
    }
    .morebilling-nav-toggle { 
        display: block; 
        margin-left: auto; 
    }
    .primary-menu, .secondary-menu { 
        flex-direction: column; 
        gap: 0; 
        width: 100%; 
    }
    .primary-menu li, .secondary-menu li { 
        border-bottom: 1px solid #2a4b7c; 
        width: 100%; 
    }
    .primary-menu .dropdown { 
        position: static; 
        background: #2a4b7c; 
    }
    .primary-menu .has-dropdown:hover .dropdown { 
        display: none; 
    }
    .primary-menu .has-dropdown.active .dropdown { 
        display: block; 
    }
    .morebilling-stats-grid { 
        grid-template-columns: 1fr; 
    }
    .morebilling-row { 
        flex-direction: column; 
    }
}

/* Domain Search Page */
.morebilling-domain-search-page { 
    background: #f9f9f9; 
    padding: 20px; 
}
.domain-search-hero { 
    background: #1a355e; 
    background-size: cover; 
    padding: 50px 20px; 
    text-align: center; 
    border-radius: 8px; 
    margin-bottom: 30px; 
    color: #fff; 
    position: relative; 
}
.domain-search-hero::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0, 0, 0, 0.5); 
    border-radius: 8px; 
}
.domain-search-hero h1 { 
    margin: 0 0 10px; 
    font-size: 36px; 
    position: relative; 
    z-index: 1; 
    color: #ffffff;
}
.domain-search-hero p { 
    margin: 0 0 20px; 
    font-size: 18px; 
    position: relative; 
    z-index: 1; 
}
.domain-search-hero form { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    flex-wrap: wrap; 
    position: relative; 
    z-index: 1; 
}
.domain-search-hero input { 
    padding: 15px; 
    width: 100%; 
    max-width: 500px; 
    border: none; 
    border-radius: 5px; 
    font-size: 16px; 
}
.domain-search-hero button { 
    padding: 15px 30px; 
    background: #f5a623; 
    color: #fff; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 16px; 
}
.domain-search-hero button:hover { 
    background: #e69500; 
}
.domain-results { 
    margin-top: 20px; 
    background: #fff; 
    padding: 12px; 
    border-radius: 12px; 
    border: solid #077000;
}
.domain-results p { 
    margin: 5px 0; 
    font-size: 16px; 
}
.available { 
    color: #28a745; 
    font-weight: bold; 
}
.taken { 
    color: #dc3545; 
    font-weight: bold; 
}
.error { 
    color: #dc3545; 
}
.domain-suggestions { 
    text-align: center; 
}
.domain-suggestions h2 { 
    font-size: 24px; 
    margin-bottom: 20px; 
    color: #28a745; 
}
.extensions-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 20px; 
}
.extension { 
    background: #fff; 
    padding: 15px; 
    border-radius: 5px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}
.extension span { 
    font-weight: bold; 
    color: #1a355e; 
}

/* Hosting Pricing Table */
.hosting-pricing { 
    text-align: center; 
    margin-top: 40px; 
}
.hosting-pricing h2 { 
    font-size: 24px; 
    margin-bottom: 20px; 
    color: #28a745; 
}
.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
}
.pricing-plan { 
    background: #fff; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    text-align: center; 
    position: relative; 
    padding-bottom: 20px; 
}
.pricing-plan.popular { 
    transform: scale(1.05); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}
.pricing-plan.popular::before {
    content: 'Popular';
    position: absolute;
    top: 15px;
    left: -10px;
    background: #dc3545;
    color: #fff;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    transform: rotate(-45deg);
    z-index: 1;
}
.plan-header { 
    padding: 15px; 
    border-radius: 8px 8px 0 0; 
    color: #fff; 
}
.plan-header.basic { 
    background: #f5a623; 
}
.plan-header.deluxe { 
    background: #28a745; 
}
.plan-header.ultimate { 
    background: #17a2b8; 
}
.plan-header h3 { 
    font-size: 20px; 
    margin: 0; 
    color: #fff !important; 
}
.pricing-plan .price { 
    padding: 15px 0; 
    position: relative; 
    border-bottom: 2px solid #077000; 
    margin-bottom: 10px; 
}
.pricing-plan .price::after {
    content: 'Features';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #28a745;
    font-size: 16px;
    font-weight: bold;
    padding: 0 5px;
}

.pricing-plan.starter { 
    transform: scale(1.05); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}
.pricing-plan.starter::before {
    content: 'Starter';
    position: absolute;
    top: 0;
    left: 0;
    background: #dc3545;
    color: #fff;
    padding: 5px 15px;
    border-radius: 8px 0 8px 0;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.pricing-plan.unlimited { 
    transform: scale(1.05); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}
.pricing-plan.unlimited::before {
    content: 'Unlimited';
    position: absolute;
    top: 0;
    left: 0;
    background: #dc3545;
    color: #fff;
    padding: 5px 15px;
    border-radius: 8px 0 8px 0;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.pricing-plan .original-price { 
    font-size: 16px; 
    color: #999; 
    text-decoration: line-through; 
    display: block; 
}
.pricing-plan .discount { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: #dc3545; 
    color: #fff; 
    padding: 5px 10px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: bold; 
}
.pricing-plan .current-price { 
    font-size: 24px; 
    font-weight: bold; 
    color: #333; 
    display: block; 
}
.pricing-plan ul { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 20px; 
}
.pricing-plan li { 
    padding: 0; 
    margin-bottom: 0; 
    border-bottom: 2px solid #eee; 
    position: relative; 
    padding-left: 0px; 
    line-height: 1.5; 
}
.pricing-plan li::before { 
    content: '✔'; 
    position: absolute; 
    left: 10px; 
    color: #28a745; 
    font-weight: bold; 
}
.pricing-plan .pricing-btn { 
    background: #17a2b8; 
    color: #fff; 
    padding: 10px 20px; 
    border-radius: 5px; 
    text-decoration: none; 
    display: inline-block; 
    font-weight: bold; 
    text-transform: uppercase; 
}
.pricing-plan .pricing-btn:hover { 
    opacity: 0.9; 
}
.pricing-plan.basic .pricing-btn { 
    background: #f5a623 !important; 
}
.pricing-plan.deluxe .pricing-btn { 
    background: #28a745 !important; 
}
.pricing-plan.ultimate .pricing-btn { 
    background: #17a2b8 !important; 
}

/* Responsive Design for Pricing Table */
@media (max-width: 768px) {
    .pricing-grid { 
        grid-template-columns: 1fr; 
    }
    .pricing-plan.popular { 
        transform: scale(1); 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .domain-search-hero { 
        padding: 30px 10px; 
    }
    .domain-search-hero h1 { 
        font-size: 28px; 
    }
    .domain-search-hero p { 
        font-size: 16px; 
    }
    .extensions-grid { 
        grid-template-columns: 1fr; 
    }
    .pricing-grid { 
        grid-template-columns: 1fr; 
    }
}

