/**
 * MVN Modern CSS Styles
 * Custom styles for MVN client area template
 */

/* ============================================
   ACTIVE MENU ITEM
   ============================================ */
.menu-primary > li.mvn-active > a {
    background-color: #bd417c !important;
    color: #fff !important;
    border-radius: 6px;
    height: 40px !important;
    padding: 1px 16px !important;
}
.menu-primary > li.mvn-active > a .item-text {
    color: #fff !important;
}
.menu-primary > li.mvn-active > a i {
    color: #fff !important;
}
.menu-primary > li.mvn-active > a .ls-caret {
    color: #fff !important;
}

/* ============================================
   PRODUCTS GRID CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}
.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-card-body {
    flex: 1;
}
.product-card-status-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.product-card-free-badge {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(189, 65, 124, 0.15);
    border-color: #bd417c;
}
.product-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}
.product-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #bd417c 0%, #e91e63 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}
.product-card-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.product-card-status.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}
.product-card-status.status-suspended {
    background: #fff3e0;
    color: #ef6c00;
}
.product-card-status.status-terminated,
.product-card-status.status-cancelled {
    background: #ffebee;
    color: #c62828;
}
.product-card-status.status-pending {
    background: #e3f2fd;
    color: #1565c0;
}
.product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    min-height: 50px;
}
.product-card-domain {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    word-break: break-all;
    min-height: 20px;
}
.product-card-info {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.product-card-info-item {
    text-align: center;
}
.product-card-info-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.product-card-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.product-card-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}
.product-card-actions .btn {
    flex: 1;
    border-radius: 8px;
}
.product-card-actions .btn-primary {
    background: #bd417c;
    border-color: #bd417c;
}
.product-card-actions .btn-primary:hover {
    background: #a03668;
    border-color: #a03668;
}

/* ============================================
   DOMAIN ACTIONS GRID
   ============================================ */
.domain-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.domain-actions-grid.domain-actions-centered {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .domain-actions-grid {
        grid-template-columns: 1fr;
    }
}
.domain-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #eee;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.domain-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.domain-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    text-decoration: none;
}
/* All action cards same color (pink/rose) */
.domain-action-card {
    border-color: #bd417c;
}
.domain-action-card:hover {
    background: linear-gradient(135deg, #fce4ec 0%, #fff 100%);
}
.domain-action-icon {
    background: linear-gradient(135deg, #bd417c 0%, #e91e63 100%);
}

.domain-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}
.domain-action-content {
    flex: 1;
}
.domain-action-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px 0;
}
.domain-action-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
}
.domain-action-arrow {
    color: #ccc;
    font-size: 18px;
    transition: transform 0.3s ease;
}
.domain-action-card:hover .domain-action-arrow {
    transform: translateX(-4px);
    color: #bd417c;
}

/* ============================================
   DOMAINS LIST HEADER
   ============================================ */
.domains-list-header {
    margin-bottom: 16px;
}
.domains-list-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px 0;
}
.domains-list-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}
.expiring-alert {
    color: #e65100;
}
.expiring-alert strong {
    color: #d84315;
}
.expiring-link {
    color: #bd417c;
    font-weight: 600;
    text-decoration: none;
    padding: 2px 8px;
    background: #fce4ec;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.expiring-link:hover {
    background: #bd417c;
    color: #fff;
    text-decoration: none;
}

/* ============================================
   DOMAINS TOOLBAR (Search & Filter)
   ============================================ */
.domains-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.domains-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}
.domains-search-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}
.domains-search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}
.domains-search-input:focus {
    outline: none;
    border-color: #bd417c;
    box-shadow: 0 0 0 4px rgba(189, 65, 124, 0.1);
}
.domains-search-input::placeholder {
    color: #aaa;
}
.domains-filter-select-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.domains-filter-select-wrapper label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}
.domains-filter-select {
    padding: 10px 36px 10px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat left 12px center;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 180px;
}
.domains-filter-select:focus {
    outline: none;
    border-color: #bd417c;
    box-shadow: 0 0 0 4px rgba(189, 65, 124, 0.1);
}
.domains-filter-select:hover {
    border-color: #bd417c;
}
@media (max-width: 576px) {
    .domains-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .domains-search-wrapper {
        max-width: 100%;
    }
}

/* ============================================
   DOMAIN CARDS CONTAINER
   ============================================ */
.domains-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.domain-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.domain-card:hover {
    border-color: #bd417c;
    box-shadow: 0 4px 16px rgba(189, 65, 124, 0.1);
    transform: translateX(-4px);
}
.domain-card-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}
/* domain-card-icon removed per user request */
.domain-card-info {
    flex: 1;
}
.domain-card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.domain-card-name a {
    color: #333;
    text-decoration: none;
}
.domain-card-name a:hover {
    color: #bd417c;
}
.domain-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.domain-card-status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.domain-card-status.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}
.domain-card-status.status-pending,
.domain-card-status.status-pendingtransfer {
    background: #e3f2fd;
    color: #1565c0;
}
.domain-card-status.status-expired,
.domain-card-status.status-cancelled {
    background: #ffebee;
    color: #c62828;
}
.domain-card-renewal,
.domain-card-autorenew {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}
.domain-card-autorenew.autorenew-on {
    color: #4caf50;
}
.domain-card-autorenew.autorenew-off {
    color: #999;
}
.domain-card-actions {
    display: flex;
    gap: 8px;
}
.domain-card-actions .btn-outline {
    background: transparent;
    border: 1px solid #bd417c;
    color: #bd417c;
}
.domain-card-actions .btn-outline:hover {
    background: #bd417c;
    color: #fff;
}
@media (max-width: 768px) {
    .domain-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .domain-card-actions {
        width: 100%;
    }
    .domain-card-actions .btn {
        flex: 1;
    }
}

/* ============================================
   PAGINATION
   ============================================ */
.domains-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 12px;
}
.pagination-info {
    font-size: 14px;
    color: #666;
}
.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #eee;
    background: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination-btn:hover:not(:disabled) {
    border-color: #bd417c;
    color: #bd417c;
}
.pagination-btn.active {
    background: #bd417c;
    border-color: #bd417c;
    color: #fff;
}
.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination-btn.pagination-prev,
.pagination-btn.pagination-next {
    background: #f8f9fa;
}
.pagination-btn.pagination-prev:hover:not(:disabled),
.pagination-btn.pagination-next:hover:not(:disabled) {
    background: #bd417c;
    border-color: #bd417c;
    color: #fff;
}
.pagination-dots {
    padding: 0 4px;
    color: #999;
}
@media (max-width: 576px) {
    .domains-pagination {
        flex-direction: column;
        align-items: center;
    }
}
