/* DNS Lookup WordPress Plugin Styles */
.dns-lookup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.dns-lookup-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    padding: 40px;
    margin: 0 auto;
    animation: dns-fadeIn 0.5s ease-in;
}

@keyframes dns-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dns-lookup-header {
    text-align: center;
    margin-bottom: 30px;
}

.dns-lookup-header h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
}

.dns-lookup-search-box {
    margin-bottom: 30px;
}

.dns-lookup-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dns-lookup-input-group label {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.dns-lookup-input-group input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    width: 100%;
}

.dns-lookup-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dns-lookup-input-group button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dns-lookup-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.dns-lookup-input-group button:active {
    transform: translateY(0);
}

.dns-loading {
    text-align: center;
    padding: 40px;
}

.dns-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: dns-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes dns-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dns-error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #c33;
    margin-bottom: 20px;
    font-weight: 500;
}

.dns-results {
    margin-top: 30px;
}

.dns-result-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.dns-result-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.dns-record-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dns-record-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.dns-record-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dns-record-item.dns-empty {
    color: #999;
    font-style: italic;
}

.dns-mx-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dns-mx-priority {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.dns-ip-address {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.dns-location-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.dns-location-detail {
    margin: 8px 0;
    color: #555;
    font-size: 0.95em;
}

.dns-location-detail strong {
    color: #667eea;
    margin-right: 5px;
}

.dns-map-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.dns-map-link:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
    color: white;
}

.dns-location-info.dns-unavailable {
    color: #856404;
    background: #fff3cd;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #ffc107;
}

.dns-unavailable-text {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.dns-location-info.dns-unavailable small {
    display: block;
    color: #856404;
    font-size: 0.85em;
}

@media (max-width: 600px) {
    .dns-lookup-wrapper {
        min-height: auto;
        padding: 10px;
    }
    
    .dns-lookup-container {
        padding: 20px;
    }
    
    .dns-lookup-header h2 {
        font-size: 1.5em;
    }
    
    .dns-mx-record {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* History Styles */
.dns-lookup-history {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.dns-lookup-history h3 {
    margin-bottom: 15px;
    color: #333;
}

.dns-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dns-history-list li {
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 5px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.dns-history-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dns-history-date {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

/* Custom History Design */
.dns-history-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.dns-history-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.dns-history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dns-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.dns-history-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
    font-weight: 600;
}

.dns-history-header .dns-history-date {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

.dns-history-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dns-history-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.dns-history-section h4 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 1.1em;
    font-weight: 600;
}

.dns-history-records {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dns-history-record {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.dns-history-record strong {
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 1em;
}

.dns-history-location,
.dns-history-isp {
    background: #e8f4f8;
    color: #555;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    white-space: nowrap;
}

.dns-history-priority {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: auto;
}

.dns-history-more {
    color: #666;
    font-style: italic;
    padding: 8px 15px;
    font-size: 0.9em;
}

.dns-history-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dns-history-empty p {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}

@media (max-width: 768px) {
    .dns-history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dns-history-record {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dns-history-priority {
        margin-left: 0;
    }
}

/* History Table Styles */
.dns-history-table-wrapper {
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.dns-history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.dns-history-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dns-history-table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border: none;
    color: white;
}

.dns-history-table tbody tr {
    transition: background-color 0.2s ease;
}

.dns-history-table tbody tr:hover {
    background-color: #f8f9fa;
}

.dns-history-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.dns-history-table tbody tr:last-child td {
    border-bottom: none;
}

.dns-device-info {
    font-size: 0.9em;
    line-height: 1.8;
    color: #333;
}

.dns-device-item {
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
}

.dns-device-info strong {
    color: #667eea;
    margin-right: 6px;
    font-weight: 600;
}

.dns-delete-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 13px !important;
}

.dns-delete-btn:hover {
    background: #c82333 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
}

.dns-delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    transform: none !important;
}

@media (max-width: 1200px) {
    .dns-history-table-wrapper {
        overflow-x: auto;
    }
    
    .dns-history-table {
        min-width: 700px;
    }
    
    .dns-device-info {
        font-size: 0.85em;
    }
}

