/* Manage Domains Page Styles */

.page-title {
    font-size: 32px;
    font-family: 'Inter_18pt-Bold';
    color: var(--primary-color);
    margin-top: 16px;
    margin-bottom: 16px !important;
}

.manage-domains-section {
    margin-bottom: 16px;
}

.manage-domains-section+.manage-domains-section {
    margin-top: 16px;
}

.manage-domains-section:last-child {
    margin-bottom: 0;
}

.section-card {
    background: #FFFFFF;
    border: 1px solid #EDEDED;
    border-radius: 12px;
    padding: 24px 0;
    /* No horizontal padding for edge-to-edge tables */
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.section-header {
    margin-bottom: 24px;
    padding: 0 24px;
}

.section-title {
    font-size: 20px;
    font-family: "Inter_28pt-SemiBold";
    color: var(--primary-color);
    margin: 0;
}

.section-description-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 12px;
    padding: 0 24px;
}

.section-description {
    font-size: 16px;
    line-height: 24px;
    color: #595959;
    font-family: "Inter_28pt-Regular";
    margin: 0;
}

/* Section specific button adjustments */
.btn-manage {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-family: "Inter_18pt-Bold";
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
}

.btn-manage img {
    width: 18px;
    height: 14px;
    transition: filter 0.2s ease;
}

.btn-manage.btn-block {
    background-color: transparent !important;
    color: #1452CA !important;
    border: 1px solid #1452CA !important;
}

.btn-manage.btn-block img {
    filter: invert(19%) sepia(98%) saturate(3029%) hue-rotate(212deg) brightness(91%) contrast(92%);
}

.btn-manage.btn-allow {
    background-color: transparent !important;
    color: #1452CA !important;
    border: 1px solid #1452CA !important;
}

.btn-manage.btn-allow img {
    filter: invert(19%) sepia(98%) saturate(3029%) hue-rotate(212deg) brightness(91%) contrast(92%);
}

.btn-manage.btn-report {
    background-color: transparent !important;
    color: #FF0000 !important;
    border: 1px solid #FF0000 !important;
    font-family: "Inter_28pt-SemiBold";
}

.btn-manage.btn-report img {
    width: 24px;
    height: 24px;
    filter: invert(13%) sepia(100%) saturate(7491%) hue-rotate(359deg) brightness(98%) contrast(116%);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: "Inter_28pt-Regular";
}

.badge-blocked {
    background: #FFEBEB;
    color: #CC0000;
}

.badge-allow {
    background: #EBFFEB;
    color: #049286;
}

.badge-reported {
    background: #FFF8E1;
    color: #A38A00;
}

.badge-reported img {
    filter: invert(52%) sepia(93%) saturate(1636%) hue-rotate(18deg) brightness(92%) contrast(101%);
}

.status-badge img {
    width: 20px;
    height: 20px;
}

/* Actions */
.domain-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    /* Reduced gap */
}

.domain-actions .action-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 !important;
    /* Reset global margin-left: auto from index.css */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s;
}

.domain-actions .action-icon-btn:hover {
    opacity: 1;
}

.domain-actions .action-icon-btn img {
    width: 18px;
    height: 18px;
}

.icon-edit {
    filter: grayscale(1) brightness(0.5);
}

.icon-delete {
    filter: invert(19%) sepia(96%) saturate(3946%) hue-rotate(354deg) brightness(86%) contrast(98%);
}

/* Pagination Styles (Matching API Stats) */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    padding-top: 20px;
    border-top: 1px solid #DBDBDB;
}

.table-pagination {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    /* padding: 16px 24px;  Removed padding to match manage-domains container */
}

.pagination-select-container {
    position: relative;
    display: inline-block;
}

.pagination-select {
    appearance: none;
    padding: 8px 30px 8px 12px;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    background-color: #FFFFFF;
    font-size: 14px;
    color: #344054;
    font-family: 'Inter_28pt-SemiBold';
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.page-nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D0D5DD;
    background-color: #FFFFFF;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 4px;
}

.page-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #667085;
    font-family: 'Inter_28pt-Regular';
    cursor: pointer;
    border-radius: 8px;
}

.page-number.active {
    background-color: #F9F5FF;
    color: #1452CA;
    background-color: #F6F9FE;
    font-family: 'Inter_28pt-SemiBold';
}

.page-dots {
    color: #667085;
    padding: 0 8px;
}

.rotate-180 {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .section-description-wrapper {
         flex-direction: column;
         gap: 12px;
    
}

.section-description{
    font-size: 12px;
    line-height: 20px;
}


.section-header {
    margin-bottom: 12px;
}

    .pagination-container {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .table-pagination {
        flex-direction: column;
        /* Or match api-stats logic */
        gap: 16px;
    }
}

.block-modal-desc {
    font-size: 16px !important;
    color: #737373 !important;
    font-family: 'Inter_28pt-Regular', sans-serif !important;
    margin-top: 8px;
    margin-bottom: 0;
}

#block-modal-title,
#report-modal-title,
#allow-modal-title {
    font-size: 20px !important;
}

/* Block Domain Modal Styles */
.btn-block-submit {
    background-color: #FFEBEB !important;
    color: #CC0000 !important;
    border: none !important;
}

.btn-block-submit:hover {
    background-color: #FDDCDC !important;
}

#block-comment {
    height: 80px !important;
    padding-top: 10px;
    resize: none;
    font-family: 'Inter_18pt-Regular', sans-serif;
}

@media (max-width: 550px) {
    #block-comment {
        height: 100px !important;
    }
}

/* Report Modal Styles */
.btn-report-submit {
    background-color: #FFEBEB !important;
    color: #CC0000 !important;
    border: none !important;
    font-family: "Inter_28pt-SemiBold" !important;
}

.btn-report-submit:hover {
    background-color: #FDDCDC !important;
}

.btn-text-close {
    background: transparent;
    border: none;
    font-family: "Inter_28pt-SemiBold";
    font-size: 16px;
    color: #101828;
    margin-top: 8px;
    cursor: pointer;
    width: 100%;
    height: 48px;
    text-align: center;
}

#report-comment {
    height: 80px !important;
    padding-top: 10px;
    resize: none;
    font-family: 'Inter_18pt-Regular', sans-serif;
}

@media (max-width: 550px) {
    #report-comment {
        height: 100px !important;
    }
}

/* Allow Modal Styles */
.btn-allow-submit {
    background-color: #ECF2FD !important;
    color: #1452CA !important;
    border: none !important;
    font-family: "Inter_28pt-SemiBold" !important;
}

.btn-allow-submit:hover {
    background-color: #D3E0FA !important;
}

#allow-comment {
    height: 80px !important;
    padding-top: 10px;
    resize: none;
    font-family: 'Inter_18pt-Regular', sans-serif;
}

@media (max-width: 550px) {
    #allow-comment {
        height: 100px !important;
    }
}



.block-modal-header {
    align-items: flex-start;
}

.block-modal-body {
    margin-top: 24px;
}

/* Empty State Styles */
.empty-state-cell {
    height: 506px;
    vertical-align: middle;
    padding: 0 !important;
    border-bottom: none !important;
}

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.empty-state-title {
    font-family: 'Inter_28pt-SemiBold';
    font-size: 20px;
    color: #101828;
    margin-bottom: 8px;
    text-align: center;
}

.empty-state-desc {
    font-family: 'Inter_28pt-Regular';
    font-size: 16px;
    color: #667085;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .empty-state-cell {
        height: 420px;
        border-bottom: none !important;
    }
}

/* Delete Confirmation Modal Styles */
.delete-modal-box {
    text-align: center;
    padding: 32px;
    max-width: 400px;
    border-radius: 16px;
}

.delete-icon-wrapper {
    width: 64px;
    height: 64px;
    background: #FEF2F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.delete-modal-icon {
    width: 32px;
    height: 32px;
    filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.delete-modal-title {
    font-family: 'Inter_28pt-SemiBold';
    font-size: 20px;
    color: #111827;
    margin-bottom: 8px;
}

.delete-modal-desc {
    font-family: 'Inter_28pt-Regular';
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 32px;
}

.delete-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: stretch;
}

.btn-cancel-delete {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    background: #fff;
    font-family: 'Inter_28pt-Regular';
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.btn-confirm-delete {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #DC2626;
    font-family: 'Inter_28pt-Regular';
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}