/* DNS Propagation Checker Styles */

.dns-propagation-checker {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Tool Container */
.tool-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Advanced Options */
.advanced-options {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.advanced-options h4 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.2em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

/* Server Selection */
.server-selection {
    margin: 20px 0;
}

.server-filters {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.server-filters .btn {
    font-size: 0.85em;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.server-filters .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.server-grid {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #ffffff;
}

.server-region {
    margin-bottom: 25px;
}

.server-region h5 {
    color: #007bff;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1em;
}

.server-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.server-checkbox {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.server-checkbox:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.server-checkbox input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.1);
}

.server-info strong {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 2px;
}

.server-info small {
    color: #666;
    font-size: 0.8em;
    line-height: 1.3;
}

/* Results Container */
.results-container {
    margin-top: 30px;
}

/* Summary Cards */
.propagation-summary h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.card-icon {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.card-content h3 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.card-content p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
    font-weight: 500;
}

/* TTL Information */
.ttl-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    border-left: 5px solid #2196f3;
}

.ttl-info h4 {
    color: #1976d2;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.ttl-info p {
    margin-bottom: 5px;
    font-size: 1.05em;
}

.ttl-info small {
    color: #555;
    font-style: italic;
}

/* Chart Container */
.chart-container {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-container h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4em;
}

/* Detailed Results */
.detailed-results {
    margin-top: 40px;
}

.detailed-results h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

.result-filters {
    margin: 25px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.result-filters .btn {
    font-size: 0.9em;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.result-filters .btn.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Server Results */
.server-results {
    display: grid;
    gap: 20px;
}

.server-result {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.server-result:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.server-result.success {
    border-left: 5px solid #28a745;
}

.server-result.error {
    border-left: 5px solid #dc3545;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.server-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.server-details {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.server-status {
    text-align: right;
    flex-shrink: 0;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 5px;
}

.status-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.response-time {
    display: block;
    color: #666;
    font-size: 0.85em;
    font-weight: 500;
    margin-top: 3px;
}

/* Server Records */
.server-records {
    margin-top: 20px;
}

.record-type-section {
    margin-bottom: 20px;
}

.record-type-section h5 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
    padding: 8px 12px;
    background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.records-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.record-item {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    word-break: break-all;
}

.record-item:last-child {
    border-bottom: none;
}

.record-item strong {
    color: #495057;
    font-weight: 600;
}

/* Server Error */
.server-error {
    color: #dc3545;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background: #f8d7da;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

/* Share Section */
.share-section {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.share-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.share-section p {
    color: #666;
    margin-bottom: 15px;
}

/* Status Legend */
.status-legend {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.status-legend h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.legend-item i {
    font-size: 1.1em;
}

.legend-item.success {
    color: #28a745;
}

.legend-item.error {
    color: #dc3545;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .dns-propagation-checker {
        padding: 15px;
    }
    
    .tool-container {
        padding: 20px;
    }
    
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .server-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .server-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .server-status {
        text-align: left;
        margin-top: 10px;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .server-filters {
        justify-content: center;
    }
    
    .result-filters {
        justify-content: center;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .card-content h3 {
        font-size: 1.8em;
    }
    
    .card-icon {
        font-size: 2em;
    }
}

@media (max-width: 576px) {
    .tool-container {
        padding: 15px;
    }
    
    .server-grid {
        padding: 10px;
    }
    
    .server-result {
        padding: 15px;
    }
    
    .advanced-options {
        padding: 15px;
    }
    
    .share-section {
        padding: 15px;
    }
}

/* Accessibility Improvements */
.server-checkbox:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Print Styles */
@media print {
    .server-filters,
    .result-filters,
    .share-section,
    .advanced-options {
        display: none;
    }
    
    .summary-card {
        break-inside: avoid;
    }
    
    .server-result {
        break-inside: avoid;
        margin-bottom: 20px;
    }
} 