.notice-label { background-color: #b2b2b2; }
.notice-content { border: 1px solid #b2b2b2; }
.notice-box { font-size: 12px; }

.whois-textarea {
    width: 100%;
    height: 220px;
    resize: vertical;
    border: 1px solid #9e9e9e;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.whois-search-btn {
    margin-top: 12px;
    width: 100%;
    background-color: #006793;
    color: #fff;
    border: 2px solid #006793;
    border-radius: 999px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}
.whois-search-btn:hover {
    background-color: #fff;
    color: #006793;
}

.whois-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 20px;
    background-color: #fff;
    border: 1px solid #bdbdbd;
}

.whois-result-table thead th {
    background-color: #6b6b6b;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 12px;
    text-align: center;
    border-right: 1px solid #8a8a8a;
    white-space: nowrap;
}

.whois-result-table thead th:last-child {
    border-right: none;
}

.whois-result-table tbody td {
    padding: 12px 12px;
    vertical-align: top;
    border-top: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    background-color: #ffffff;
}

.whois-result-table tbody td:last-child {
    border-right: none;
}

.whois-result-table .domain-cell {
    color: #333;
    font-weight: 500;
}

.whois-result-table .date-sub {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.whois-result-table .ns-cell {
    line-height: 1.6;
    white-space: nowrap;
}

.whois-result-table td.text-danger {
    color: #d32f2f;
    font-weight: 500;
    text-align: center;
}

.whois-result-table .view-raw {
    background-color: #e0e0e0;
    border: 1px solid #bdbdbd;
    color: #333;
    border-radius: 16px;
    padding: 4px 14px;
    font-size: 12px;
    cursor: pointer;
}

.whois-result-table .view-raw:hover {
    background-color: #d5d5d5;
}

.table-responsive {
    overflow-x: auto;
}
.csv-download-btn {
    background-color: #006793;
    color: #fff;
    border: 1px solid #006793;
    border-radius: 4px;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.csv-download-btn:hover {
    background-color: #fff;
    color: #006793;
}

.whois-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.whois-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whois-modal-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.whois-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 8px 8px 0 0;
}

.whois-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.whois-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #000;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whois-modal-close:hover {
    color: #666;
}

.whois-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    background-color: #fff;
}

.whois-modal-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #000;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
}

.whois-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

.whois-modal-btn-close {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.whois-modal-btn-close:hover {
    background-color: #5a6268;
}

@media (max-width: 992px) {
    .page-body .d-flex.gap-1 img { width: 180px; }
    .page-body .d-flex.gap-1 h1 { font-size: 28px !important; }
    .notice-label { padding: 8px 12px !important; white-space: nowrap; }
    .notice-content { font-size: 11px; }
}

@media (max-width: 768px) {
    .page-body .d-flex.gap-1 img { width: 140px; }
    .page-body .d-flex.gap-1 h1 { font-size: 24px !important; }
    .whois-textarea { height: 180px; font-size: 13px; }
    .whois-search-btn { font-size: 15px; padding: 12px 0; }
}

@media (max-width: 576px) {
    .page-body .d-flex.gap-1 { justify-content: flex-start !important; }
    .page-body .d-flex.gap-1 img { width: 160px; }
    .page-body .d-flex.gap-1 h1 { font-size: 24px !important; }
    .notice-box { font-size: 11px; }
    .whois-textarea { height: 150px; font-size: 12px; padding: 10px; }
    .whois-search-btn { font-size: 14px; padding: 10px 0; }
}
