/* DTV Signal Lookup Plugin Styles */

.dtv-signal-lookup-wrapper {
    max-width: 1000px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.dtv-lookup-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.dtv-lookup-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.dtv-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.dtv-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.dtv-input:focus {
    outline: none;
    border-color: #0073aa;
}

.dtv-button {
    padding: 12px 32px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.dtv-button:hover {
    background: #005a87;
}

.dtv-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.dtv-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    padding: 10px;
}

.dtv-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: dtv-spin 1s linear infinite;
}

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

.dtv-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

.dtv-results {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dtv-results-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.dtv-location-info {
    background: #f0f8ff;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.dtv-location-info strong {
    color: #0073aa;
}

.dtv-results-table {
    overflow-x: auto;
}

.dtv-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.dtv-table thead {
    background: #f5f5f5;
}

.dtv-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
    text-align: center;
}

.dtv-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.dtv-table tbody tr:hover {
    background: #f9f9f9;
}

.dtv-signal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dtv-signal-progress {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.dtv-signal-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.dtv-signal-fill.strong {
    background: #28a745;
}

.dtv-signal-fill.good {
    background: #5cb85c;
}

.dtv-signal-fill.moderate {
    background: #ffc107;
}

.dtv-signal-fill.weak {
    background: #ff9800;
}

.dtv-signal-fill.very-weak {
    background: #dc3545;
}

.dtv-signal-text {
    min-width: 60px;
    font-weight: 600;
    font-size: 14px;
}

.dtv-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.dtv-badge.digital {
    background: #e3f2fd;
    color: #1976d2;
}

.dtv-badge.analog {
    background: #fff3e0;
    color: #f57c00;
}

.dtv-distance {
    color: #666;
    font-size: 14px;
}

.dtv-direction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
    color: #333;
}

.dtv-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.dtv-no-results p {
    font-size: 16px;
    margin: 10px 0;
}

/* .dtv-td-network {
    max-width: 150px;      
    overflow: hidden;      
    white-space: nowrap;   
    text-overflow: ellipsis; 
} */

.dtv-signal-icon {
    height: 40px;
    width: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dtv-lookup-form,
    .dtv-results {
        padding: 20px;
    }
    
    .dtv-search-box {
        flex-direction: column;
    }
    
    .dtv-button {
        width: 100%;
    }
    
    .dtv-table {
        font-size: 14px;
    }
    
    .dtv-table th,
    .dtv-table td {
        padding: 8px;
    }
    .dtv-hide-mobile {
        display: none;
    }
    .dtv-signal-icon {
        height: 30px;
        width: auto;
    }
}