/* ======================================
   СТИЛИ ДЛЯ ИНСТРУМЕНТА ПРОВЕРКА DNS
   ====================================== */

/* Контейнер инструмента */
.dns-checker-tool {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Секция ввода домена */
.dns-input-section {
    margin-bottom: 25px;
}

.dns-input-section label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.dns-input-group {
    display: flex;
    gap: 10px;
}

.dns-input-group input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.dns-input-group input[type="text"]:focus {
    outline: none;
    border-color: #0066cc;
}

/* Секция выбора типа DNS записи */
.dns-type-section {
    margin-bottom: 25px;
}

.dns-type-section label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.dns-type-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dns-type-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.dns-type-btn:hover {
    border-color: #0066cc;
    background-color: #f0f8ff;
}

.dns-type-btn.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Секция кнопки проверки */
.dns-button-section {
    margin-bottom: 25px;
}

.dns-button-section .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.dns-button-section .btn-primary {
    background-color: #0066cc;
    color: #fff;
}

.dns-button-section .btn-primary:hover {
    background-color: #0052a3;
}

.dns-button-section .btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Секция капчи */
.dns-captcha-section {
    display: none;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Лоадер */
.dns-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin: 20px 0;
}

.dns-loader .loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dns-loader p {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Результаты */
.dns-results {
    display: none;
    margin-top: 30px;
}

.dns-result-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
}

.dns-result-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.dns-result-header h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
}

.dns-result-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 14px;
    color: white;
}

.dns-results-table-wrapper {
    overflow-x: auto;
}

.dns-results-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.dns-results-table thead {
    background-color: #0066cc;
    color: #fff;
}

.dns-results-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.dns-results-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.dns-results-table tbody tr:hover {
    background-color: #f5f5f5;
}

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

.dns-results-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
}

.dns-result-value {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
}

.dns-no-results {
    padding: 30px;
    text-align: center;
    background-color: #fff;
    border-radius: 6px;
}

.dns-no-results p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Сообщения об ошибках */
.dns-message {
    display: none;
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
}

.dns-message.error-message {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* ======================================
   АДАПТИВНОСТЬ
   ====================================== */

@media (max-width: 1400px) {
    .dns-checker-tool {
        padding: 28px;
    }
}

@media (max-width: 1200px) {
    .dns-checker-tool {
        padding: 25px;
    }
    
    .dns-result-header h3 {
        font-size: 19px;
    }
}

@media (max-width: 991px) {
    .dns-checker-tool {
        padding: 22px;
    }
    
    .dns-type-btn {
        padding: 9px 18px;
        font-size: 13px;
    }
}

@media (max-width: 810px) {
    .dns-input-section label,
    .dns-type-section label {
        font-size: 15px;
    }
    
    .dns-type-buttons {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .dns-checker-tool {
        padding: 20px;
    }
    
    .dns-input-group {
        flex-direction: column;
    }
    
    .dns-input-group input[type="text"] {
        width: 100%;
    }
    
    .dns-type-buttons {
        gap: 8px;
    }
    
    .dns-type-btn {
        flex: 1 1 calc(33.333% - 6px);
        min-width: 80px;
        padding: 10px 15px;
    }
    
    .dns-result-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .dns-results-table {
        font-size: 13px;
    }
    
    .dns-results-table th,
    .dns-results-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 650px) {
    .dns-checker-tool {
        padding: 18px;
    }
    
    .dns-result-header h3 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .dns-checker-tool {
        padding: 16px;
    }
    
    .dns-input-section label,
    .dns-type-section label {
        font-size: 14px;
    }
    
    .dns-input-group input[type="text"] {
        font-size: 15px;
        padding: 11px 14px;
    }
    
    .dns-button-section .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .dns-type-btn {
        font-size: 12px;
        padding: 8px 12px;
        flex: 1 1 calc(50% - 4px);
    }
    
    .dns-result-card {
        padding: 20px;
    }
    
    .dns-results-table {
        font-size: 12px;
    }
    
    .dns-results-table th,
    .dns-results-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .dns-checker-tool {
        padding: 15px;
    }
    
    .dns-result-header h3 {
        font-size: 17px;
    }
    
    .dns-type-btn {
        font-size: 11px;
        padding: 7px 10px;
    }
}

@media (max-width: 420px) {
    .dns-input-section,
    .dns-type-section,
    .dns-button-section {
        margin-bottom: 20px;
    }
    
    .dns-result-card {
        padding: 18px;
    }
}

@media (max-width: 375px) {
    .dns-checker-tool {
        padding: 14px;
    }
    
    .dns-input-group input[type="text"] {
        font-size: 14px;
        padding: 10px 12px;
    }
}

@media (max-width: 360px) {
    .dns-type-btn {
        flex: 1 1 100%;
        font-size: 12px;
    }
    
    .dns-results-table th,
    .dns-results-table td {
        padding: 7px 8px;
        font-size: 11px;
    }
}

@media (max-width: 320px) {
    .dns-checker-tool {
        padding: 12px;
    }
    
    .dns-input-section label,
    .dns-type-section label {
        font-size: 13px;
    }
    
    .dns-result-header h3 {
        font-size: 16px;
    }
    
    .dns-result-card {
        padding: 15px;
    }
}